Class CreateCrushingRecipeBuilder
java.lang.Object
at.petrak.hexcasting.datagen.recipe.builders.CreateCrushingRecipeBuilder
- All Implemented Interfaces:
net.minecraft.data.recipes.RecipeBuilder
public class CreateCrushingRecipeBuilder
extends Object
implements net.minecraft.data.recipes.RecipeBuilder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionduration(int duration) @NotNull net.minecraft.world.item.Item@NotNull CreateCrushingRecipeBuildervoidsave(@NotNull Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, @NotNull net.minecraft.resources.ResourceLocation resourceLocation) @NotNull CreateCrushingRecipeBuilderunlockedBy(@NotNull String name, @NotNull net.minecraft.advancements.CriterionTriggerInstance trigger) withInput(net.minecraft.world.item.crafting.Ingredient ingredient) withInput(net.minecraft.world.item.ItemStack stack) withInput(net.minecraft.world.level.ItemLike item) withOutput(float chance, String name) withOutput(float chance, String name, int count) withOutput(float chance, net.minecraft.world.level.ItemLike output) withOutput(float chance, net.minecraft.world.level.ItemLike output, int count) withOutput(String name) withOutput(String name, int count) withOutput(net.minecraft.world.item.ItemStack output, float chance) withOutput(net.minecraft.world.level.ItemLike output) withOutput(net.minecraft.world.level.ItemLike output, int count) 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, save
-
Constructor Details
-
CreateCrushingRecipeBuilder
public CreateCrushingRecipeBuilder()
-
-
Method Details
-
unlockedBy
@NotNull public @NotNull CreateCrushingRecipeBuilder unlockedBy(@NotNull @NotNull String name, @NotNull @NotNull net.minecraft.advancements.CriterionTriggerInstance trigger) - Specified by:
unlockedByin interfacenet.minecraft.data.recipes.RecipeBuilder
-
group
- Specified by:
groupin interfacenet.minecraft.data.recipes.RecipeBuilder
-
duration
-
withInput
-
withInput
-
withInput
public CreateCrushingRecipeBuilder withInput(net.minecraft.world.item.crafting.Ingredient ingredient) -
withOutput
-
withOutput
public CreateCrushingRecipeBuilder withOutput(float chance, net.minecraft.world.level.ItemLike output) -
withOutput
-
withOutput
public CreateCrushingRecipeBuilder withOutput(float chance, net.minecraft.world.level.ItemLike output, int count) -
withOutput
public CreateCrushingRecipeBuilder withOutput(net.minecraft.world.item.ItemStack output, float chance) -
withOutput
-
withOutput
-
withOutput
-
withOutput
-
getResult
@NotNull public @NotNull net.minecraft.world.item.Item getResult()- Specified by:
getResultin interfacenet.minecraft.data.recipes.RecipeBuilder
-
save
public void save(@NotNull @NotNull Consumer<net.minecraft.data.recipes.FinishedRecipe> consumer, @NotNull @NotNull net.minecraft.resources.ResourceLocation resourceLocation) - Specified by:
savein interfacenet.minecraft.data.recipes.RecipeBuilder
-