Enum Class CreateTags.ItemAttributes

java.lang.Object
java.lang.Enum<CreateTags.ItemAttributes>
com.petrolpark.compat.create.CreateTags.ItemAttributes
All Implemented Interfaces:
Serializable, Comparable<CreateTags.ItemAttributes>, Constable
Enclosing class:
CreateTags

public static enum CreateTags.ItemAttributes extends Enum<CreateTags.ItemAttributes>
  • Enum Constant Details

    • LEVEL_INDEPDENDENT

      public static final CreateTags.ItemAttributes LEVEL_INDEPDENDENT
      Doesn't use the level field of the ItemAttribute.appliesTo(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level) method.
    • NOT_FOR_INGREDIENTS

      public static final CreateTags.ItemAttributes NOT_FOR_INGREDIENTS
      Can't be used as an Ingredient Modifier.
  • Field Details

    • tag

      public final net.minecraft.tags.TagKey<com.simibubi.create.content.logistics.item.filter.attribute.ItemAttributeType> tag
  • Method Details

    • values

      public static CreateTags.ItemAttributes[] 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 CreateTags.ItemAttributes 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
    • matches

      public boolean matches(net.minecraft.core.Holder<com.simibubi.create.content.logistics.item.filter.attribute.ItemAttributeType> type)