Class PressRecipeBuilder

java.lang.Object
com.hbm_m.datagen.recipes.custom.PressRecipeBuilder
All Implemented Interfaces:
net.minecraft.data.recipes.RecipeBuilder

public class PressRecipeBuilder extends Object implements 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.
  • Method Details

    • pressRecipe

      public static PressRecipeBuilder pressRecipe(net.minecraft.world.item.ItemStack output)
    • stamp

      public PressRecipeBuilder stamp(net.minecraft.world.item.crafting.Ingredient ingredient)
    • stamp

      public PressRecipeBuilder stamp(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    • stamp

      public PressRecipeBuilder stamp(net.minecraft.world.level.ItemLike item)
    • stamp

      public PressRecipeBuilder stamp(net.minecraft.resources.ResourceLocation itemId)
    • material

      public PressRecipeBuilder material(net.minecraft.world.item.crafting.Ingredient ingredient)
    • material

      public PressRecipeBuilder material(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    • material

      public PressRecipeBuilder material(net.minecraft.world.level.ItemLike item)
    • material

      public PressRecipeBuilder material(net.minecraft.resources.ResourceLocation itemId)
    • unlockedBy

      public net.minecraft.data.recipes.RecipeBuilder unlockedBy(@NotNull String pCriterionName, @NotNull net.minecraft.advancements.CriterionTriggerInstance pCriterionTrigger)
      Specified by:
      unlockedBy in interface net.minecraft.data.recipes.RecipeBuilder
    • group

      public net.minecraft.data.recipes.RecipeBuilder group(@Nullable String pGroupName)
      Specified by:
      group in interface net.minecraft.data.recipes.RecipeBuilder
    • getResult

      public net.minecraft.world.item.Item getResult()
      Specified by:
      getResult in interface net.minecraft.data.recipes.RecipeBuilder
    • save

      public void save(@NotNull Consumer<net.minecraft.data.recipes.FinishedRecipe> pFinishedRecipeConsumer, @NotNull net.minecraft.resources.ResourceLocation pRecipeId)
      Specified by:
      save in interface net.minecraft.data.recipes.RecipeBuilder