Class IIngredientTransformed<T extends IIngredient>

java.lang.Object
com.blamejared.crafttweaker.api.ingredient.type.IIngredientTransformed<T>
All Implemented Interfaces:
CommandStringDisplayable, IIngredient

@ZenRegister public class IIngredientTransformed<T extends IIngredient> extends Object implements IIngredient
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

  • Method Details

    • asVanillaIngredient

      public net.minecraft.world.item.crafting.Ingredient asVanillaIngredient()
      Description copied from interface: IIngredient
      Create a Vanilla ingredient matching this one.
      Specified by:
      asVanillaIngredient in interface IIngredient
    • getTransformer

      public IIngredientTransformer<T> getTransformer()
    • getRemainingItem

      public IItemStack getRemainingItem(IItemStack stack)
      Description copied from interface: IIngredient
      When this ingredient stack is crafted, what will remain in the grid? Does not check if the stack matches though! Used e.g. in Crafting Table recipes.
      Specified by:
      getRemainingItem in interface IIngredient
      Parameters:
      stack - The stack to provide for this ingredient.
    • getCommandString

      public String getCommandString()
      Description copied from interface: IIngredient
      Returns the BEP to get this stack
      Specified by:
      getCommandString in interface CommandStringDisplayable
      Specified by:
      getCommandString in interface IIngredient
    • getBaseIngredient

      public T getBaseIngredient()
    • matches

      public boolean matches(IItemStack stack, boolean ignoreDamage)
      Description copied from interface: IIngredient
      Does the given stack match the ingredient?
      Specified by:
      matches in interface IIngredient
      Parameters:
      stack - The stack to check
      ignoreDamage - Should damage be checked?
    • getItems

      public IItemStack[] getItems()
      Specified by:
      getItems in interface IIngredient
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object