Package com.hbm_m.datagen.recipes.custom
Class ChemicalPlantRecipeBuilder
java.lang.Object
com.hbm_m.datagen.recipes.custom.ChemicalPlantRecipeBuilder
- All Implemented Interfaces:
net.minecraft.data.recipes.RecipeBuilder
public class ChemicalPlantRecipeBuilder
extends Object
implements net.minecraft.data.recipes.RecipeBuilder
Datagen builder for
ChemicalPlantRecipe.
Формат JSON совпадает с ChemicalPlantRecipe.Serializer:\n
item_inputs: массив объектов Ingredient +countfluid_inputs: массив объектов{fluid, amount}item_outputs: массив объектов ItemStackfluid_outputs: массив объектов{fluid, amount}duration,power, опциональноblueprint_pool
-
Field Summary
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Method Summary
Modifier and TypeMethodDescriptionaddFluidInput(net.minecraft.world.level.material.Fluid fluid, int amountMb) addFluidOutput(net.minecraft.world.level.material.Fluid fluid, int amountMb) addItemInput(net.minecraft.world.item.crafting.Ingredient ingredient, int count) addItemInput(net.minecraft.world.item.Item item, int count) addItemOutput(net.minecraft.world.item.ItemStack stack) static ChemicalPlantRecipeBuilderchemicalPlantRecipe(int duration, int power) net.minecraft.world.item.Itemnet.minecraft.data.recipes.RecipeBuildervoidvoidsave(Consumer<net.minecraft.data.recipes.FinishedRecipe> writer, net.minecraft.resources.ResourceLocation recipeId) net.minecraft.data.recipes.RecipeBuilderunlockedBy(String name, net.minecraft.advancements.CriterionTriggerInstance criterion) withBlueprintPool(String pool) withIconFluid(net.minecraft.world.level.material.Fluid fluid) withIconItem(net.minecraft.world.item.Item item) withIconItem(net.minecraft.world.item.ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.data.recipes.RecipeBuilder
save
-
Method Details
-
chemicalPlantRecipe
-
addItemInput
public ChemicalPlantRecipeBuilder addItemInput(net.minecraft.world.item.crafting.Ingredient ingredient, int count) -
addItemInput
-
addFluidInput
public ChemicalPlantRecipeBuilder addFluidInput(net.minecraft.world.level.material.Fluid fluid, int amountMb) -
addItemOutput
-
addFluidOutput
public ChemicalPlantRecipeBuilder addFluidOutput(net.minecraft.world.level.material.Fluid fluid, int amountMb) -
withIconItem
-
withIconItem
-
withIconFluid
-
withBlueprintPool
-
unlockedBy
public net.minecraft.data.recipes.RecipeBuilder unlockedBy(@NotNull String name, @NotNull net.minecraft.advancements.CriterionTriggerInstance criterion) - Specified by:
unlockedByin interfacenet.minecraft.data.recipes.RecipeBuilder
-
group
- Specified by:
groupin interfacenet.minecraft.data.recipes.RecipeBuilder
-
getResult
public net.minecraft.world.item.Item getResult()- Specified by:
getResultin interfacenet.minecraft.data.recipes.RecipeBuilder
-
save
public void save(@NotNull Consumer<net.minecraft.data.recipes.FinishedRecipe> writer, @NotNull net.minecraft.resources.ResourceLocation recipeId) - Specified by:
savein interfacenet.minecraft.data.recipes.RecipeBuilder
-
save
public void save(@NotNull Consumer<net.minecraft.data.recipes.FinishedRecipe> writer, @NotNull String path) - Specified by:
savein interfacenet.minecraft.data.recipes.RecipeBuilder
-