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.inventory.CraftingContainer>

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
  • Constructor Summary

    Constructors
    Constructor
    Description
    CTShapelessRecipe(String name, IItemStack output, IIngredient[] ingredients, RecipeFunction1D function)
     
    CTShapelessRecipe(String name, 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.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess access)
     
     
     
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv)
     
    net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.core.RegistryAccess access)
     
    net.minecraft.world.item.crafting.RecipeSerializer<CTShapelessRecipe>
     
    boolean
    matches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn)
     

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

    canCraftInDimensions, category, getGroup, getId

    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.CraftingRecipe

    getType

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

    getToastSymbol, isIncomplete, isSpecial, showNotification
  • Constructor Details

  • Method Details

    • matches

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

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess access)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
      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.RegistryAccess access)
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
      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.inventory.CraftingContainer 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.inventory.CraftingContainer>
      Overrides:
      getIngredients in class net.minecraft.world.item.crafting.ShapelessRecipe
    • getSerializer

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

      public IIngredient[] getCtIngredients()
    • getCtOutput

      public IItemStack getCtOutput()