Class AssemblerRecipe

java.lang.Object
com.hbm_m.recipe.AssemblerRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>

public class AssemblerRecipe extends Object implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
    static class 
     
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssemblerRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.ItemStack output, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> recipeItems, int duration, int power)
     
    AssemblerRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.ItemStack output, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> recipeItems, int duration, int power, String blueprintPool)
     
    AssemblerRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.ItemStack output, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> recipeItems, List<AssemblerRecipe.AssemblerInputSlot> inputDisplaySlots, int duration, int power, String blueprintPool)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.SimpleContainer pContainer, net.minecraft.core.RegistryAccess pRegistryAccess)
     
    boolean
    canCraftInDimensions(int pWidth, int pHeight)
     
     
    int
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
     
    int
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.RegistryAccess pRegistryAccess)
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    net.minecraft.world.item.crafting.RecipeType<?>
     
    boolean
    matches(net.minecraft.world.SimpleContainer pContainer, net.minecraft.world.level.Level pLevel)
     
    boolean
     
    static com.google.gson.JsonObject
    toCountedIngredientJson(net.minecraft.world.item.crafting.Ingredient ingredient, int count)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.item.crafting.Recipe

    getGroup, getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
  • Constructor Details

    • AssemblerRecipe

      public AssemblerRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.ItemStack output, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> recipeItems, int duration, int power)
    • AssemblerRecipe

      public AssemblerRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.ItemStack output, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> recipeItems, int duration, int power, @Nullable String blueprintPool)
    • AssemblerRecipe

      public AssemblerRecipe(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.ItemStack output, net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> recipeItems, @Nullable List<AssemblerRecipe.AssemblerInputSlot> inputDisplaySlots, int duration, int power, @Nullable String blueprintPool)
  • Method Details

    • matches

      public boolean matches(@NotNull net.minecraft.world.SimpleContainer pContainer, @NotNull net.minecraft.world.level.Level pLevel)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • assemble

      public net.minecraft.world.item.ItemStack assemble(@NotNull net.minecraft.world.SimpleContainer pContainer, @NotNull net.minecraft.core.RegistryAccess pRegistryAccess)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • canCraftInDimensions

      public boolean canCraftInDimensions(int pWidth, int pHeight)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(@NotNull net.minecraft.core.RegistryAccess pRegistryAccess)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • getIngredients

      public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()
      Specified by:
      getIngredients in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • getInputDisplaySlots

      public List<AssemblerRecipe.AssemblerInputSlot> getInputDisplaySlots()
    • getDuration

      public int getDuration()
    • getPowerConsumption

      public int getPowerConsumption()
    • getBlueprintPool

      @Nullable public String getBlueprintPool()
    • requiresBlueprint

      public boolean requiresBlueprint()
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • getType

      public net.minecraft.world.item.crafting.RecipeType<?> getType()
      Specified by:
      getType in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
    • toCountedIngredientJson

      public static com.google.gson.JsonObject toCountedIngredientJson(net.minecraft.world.item.crafting.Ingredient ingredient, int count)