Class AtomicalStabilizationRecipeBuilder
java.lang.Object
net.minheur.mhm_bitsnbobs.recipe.datagen.AtomicalStabilizationRecipeBuilder
Here is the builder to datagen atomical stabilizator recipes
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.advancements.Advancement.Builderprivate final intprivate final net.minecraft.world.level.ItemLikeprivate final net.minecraft.world.level.ItemLikeprivate final net.minecraft.world.level.ItemLikeprivate final net.minecraft.world.level.ItemLike -
Constructor Summary
ConstructorsConstructorDescriptionAtomicalStabilizationRecipeBuilder(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int count) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidensureValid(net.minecraft.resources.ResourceLocation pId) Make sure your recipe is validvoidSaves your recipe.voidsave(Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, net.minecraft.resources.ResourceLocation id) Saves your recipe.stabilization(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result) stabilization(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int pCount)
-
Field Details
-
leftIngredient
private final net.minecraft.world.level.ItemLike leftIngredient -
rightIngredient
private final net.minecraft.world.level.ItemLike rightIngredient -
glueIngredient
private final net.minecraft.world.level.ItemLike glueIngredient -
result
private final net.minecraft.world.level.ItemLike result -
count
private final int count -
advancement
private final net.minecraft.advancements.Advancement.Builder advancement
-
-
Constructor Details
-
AtomicalStabilizationRecipeBuilder
public AtomicalStabilizationRecipeBuilder(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int count)
-
-
Method Details
-
stabilization
public static AtomicalStabilizationRecipeBuilder stabilization(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result) -
stabilization
public static AtomicalStabilizationRecipeBuilder stabilization(net.minecraft.world.level.ItemLike leftIngredient, net.minecraft.world.level.ItemLike rightIngredient, net.minecraft.world.level.ItemLike glueIngredient, net.minecraft.world.level.ItemLike result, int pCount) -
unlocks
public AtomicalStabilizationRecipeBuilder unlocks(String pKey, net.minecraft.advancements.CriterionTriggerInstance pCriterion) -
ensureValid
private void ensureValid(net.minecraft.resources.ResourceLocation pId) Make sure your recipe is valid- Parameters:
pId- your recipe's id / name
-
save
public void save(Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, net.minecraft.resources.ResourceLocation id) Saves your recipe.- Parameters:
consumer- recipe consumerid- your recipe id / name. Take aResourceLocation.
-
save
Saves your recipe.- Parameters:
consumer- recipe consumerid- your recipe id / name. Takes aStringand will make aResourceLocationtaking inmhm_bitsnbobsand your id.
-