Enum Class IIngredientAny

java.lang.Object
java.lang.Enum<IIngredientAny>
com.blamejared.crafttweaker.api.ingredient.type.IIngredientAny
All Implemented Interfaces:
CommandStringDisplayable, IIngredient, Serializable, Comparable<IIngredientAny>, Constable

@ZenRegister public enum IIngredientAny extends Enum<IIngredientAny> implements IIngredient
An IIngredient which matches all items
DocParam:
this IIngredientAny.getInstance()
  • Enum Constant Details

  • Method Details

    • values

      public static IIngredientAny[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IIngredientAny valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getInstance

      public static IIngredientAny getInstance()
    • 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?
    • 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
    • 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
    • getItems

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