Package com.hbm_m.datagen.recipes.custom
Class PressRecipeBuilder
java.lang.Object
com.hbm_m.datagen.recipes.custom.PressRecipeBuilder
- All Implemented Interfaces:
net.minecraft.data.recipes.RecipeBuilder
Builder for
PressRecipe data generation.
Mirrors the JSON structure used by the manual press recipe files but provides
the same ergonomic API style as AssemblerRecipeBuilder.-
Field Summary
Fields inherited from interface net.minecraft.data.recipes.RecipeBuilder
ROOT_RECIPE_ADVANCEMENT -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.Itemnet.minecraft.data.recipes.RecipeBuildermaterial(net.minecraft.resources.ResourceLocation itemId) material(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) material(net.minecraft.world.item.crafting.Ingredient ingredient) material(net.minecraft.world.level.ItemLike item) static PressRecipeBuilderpressRecipe(net.minecraft.world.item.ItemStack output) voidsave(Consumer<net.minecraft.data.recipes.FinishedRecipe> pFinishedRecipeConsumer, net.minecraft.resources.ResourceLocation pRecipeId) stamp(net.minecraft.resources.ResourceLocation itemId) stamp(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) stamp(net.minecraft.world.item.crafting.Ingredient ingredient) stamp(net.minecraft.world.level.ItemLike item) net.minecraft.data.recipes.RecipeBuilderunlockedBy(String pCriterionName, net.minecraft.advancements.CriterionTriggerInstance pCriterionTrigger) 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
-
Method Details
-
pressRecipe
-
stamp
-
stamp
-
stamp
-
stamp
-
material
-
material
-
material
-
material
-
unlockedBy
public net.minecraft.data.recipes.RecipeBuilder unlockedBy(@NotNull String pCriterionName, @NotNull net.minecraft.advancements.CriterionTriggerInstance pCriterionTrigger) - 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> pFinishedRecipeConsumer, @NotNull net.minecraft.resources.ResourceLocation pRecipeId) - Specified by:
savein interfacenet.minecraft.data.recipes.RecipeBuilder
-