Class CTShapelessRecipe

java.lang.Object
net.minecraft.world.item.crafting.ShapelessRecipe
com.blamejared.crafttweaker.api.recipe.type.CTShapelessRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>

public class CTShapelessRecipe extends net.minecraft.world.item.crafting.ShapelessRecipe
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.ShapelessRecipe

    net.minecraft.world.item.crafting.ShapelessRecipe.Serializer
  • Field Summary

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

    CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    CTShapelessRecipe(IItemStack output, IIngredient[] ingredients)
     
    CTShapelessRecipe(IItemStack output, IIngredient[] ingredients, RecipeFunction1D function)
     
    CTShapelessRecipe(net.minecraft.world.item.crafting.CraftingBookCategory category, IItemStack output, IIngredient[] ingredients, RecipeFunction1D function)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.CraftingInput inv, net.minecraft.core.HolderLookup.Provider lookup)
     
    static boolean
    checkEmptyIngredient(net.minecraft.resources.ResourceLocation name, IIngredient[] ingredients)
     
    boolean
     
     
     
    net.minecraft.core.NonNullList<IIngredient>
     
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(net.minecraft.world.item.crafting.CraftingInput inv)
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.HolderLookup.Provider lookup)
     
    net.minecraft.world.item.crafting.RecipeSerializer<CTShapelessRecipe>
     
    int
     
    boolean
    matches(net.minecraft.world.item.crafting.CraftingInput inv, net.minecraft.world.level.Level worldIn)
     

    Methods inherited from class net.minecraft.world.item.crafting.ShapelessRecipe

    canCraftInDimensions, category, getGroup

    Methods inherited from class java.lang.Object

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

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

    getType

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

    getToastSymbol, isIncomplete, isSpecial, showNotification
  • Constructor Details

  • Method Details

    • checkEmptyIngredient

      public static boolean checkEmptyIngredient(net.minecraft.resources.ResourceLocation name, IIngredient[] ingredients)
    • matches

      public boolean matches(net.minecraft.world.item.crafting.CraftingInput inv, net.minecraft.world.level.Level worldIn)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      matches in class net.minecraft.world.item.crafting.ShapelessRecipe
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.CraftingInput inv, net.minecraft.core.HolderLookup.Provider lookup)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      assemble in class net.minecraft.world.item.crafting.ShapelessRecipe
    • getFunction

      @Nullable public RecipeFunction1D getFunction()
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider lookup)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      getResultItem in class net.minecraft.world.item.crafting.ShapelessRecipe
    • getRemainingItems

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.item.crafting.CraftingInput inv)
    • 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.item.crafting.CraftingInput>
      Overrides:
      getIngredients in class net.minecraft.world.item.crafting.ShapelessRecipe
    • getFlatCtIngredients

      public net.minecraft.core.NonNullList<IIngredient> getFlatCtIngredients()
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<CTShapelessRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      getSerializer in class net.minecraft.world.item.crafting.ShapelessRecipe
    • getCtIngredients

      public IIngredient[] getCtIngredients()
    • getCtOutput

      public IItemStack getCtOutput()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object