Enum Class MetaType

java.lang.Object
java.lang.Enum<MetaType>
fr.andross.banitem.items.meta.MetaType
All Implemented Interfaces:
Serializable, Comparable<MetaType>, Constable

public enum MetaType extends Enum<MetaType>
A simple enumeration for customizable item metas.
Version:
3.4.1
Author:
Andross
  • Enum Constant Details Link icon

    • ADVANCEDENCHANTMENTS Link icon

      public static final MetaType ADVANCEDENCHANTMENTS
      Match specific AdvancedEnchantments plugin enchantments.
    • ATTRIBUTE Link icon

      public static final MetaType ATTRIBUTE
      Match the item attribute.
    • DISPLAYNAME_CONTAINS Link icon

      public static final MetaType DISPLAYNAME_CONTAINS
      If the display name of the item contains a specific value.
    • DISPLAYNAME_EQUALS Link icon

      public static final MetaType DISPLAYNAME_EQUALS
      If the display name of the item is exactly equals to a specific value.
    • DISPLAYNAME_EQUALS_REGEX Link icon

      public static final MetaType DISPLAYNAME_EQUALS_REGEX
      If the display name of the item match a specific regex.
    • DURABILITY Link icon

      public static final MetaType DURABILITY
      If the durability of the item match a specific value.
    • ENCHANTMENT_CONTAINS Link icon

      public static final MetaType ENCHANTMENT_CONTAINS
      If the item contains specific enchantment(s).
    • ENCHANTMENT_EQUALS Link icon

      public static final MetaType ENCHANTMENT_EQUALS
      If the item enchantments match exactly the specified enchantment(s).
    • ITEMSADDER Link icon

      public static final MetaType ITEMSADDER
      If the item match an ItemsAdder item.
    • LORE_CONTAINS Link icon

      public static final MetaType LORE_CONTAINS
      If the item lore contains a lore.
    • LORE_CONTAINS_REGEX Link icon

      public static final MetaType LORE_CONTAINS_REGEX
      If the item lore match a regex.
    • LORE_EQUALS Link icon

      public static final MetaType LORE_EQUALS
      If the item lore is exactly the same as a specified one.
    • LORE_LINE_CONTAINS Link icon

      public static final MetaType LORE_LINE_CONTAINS
      If a line from an item lore contains a specific value.
    • MODELDATA_EQUALS Link icon

      public static final MetaType MODELDATA_EQUALS
      If the item model data is equals to a specified value.
    • NBTAPI Link icon

      public static final MetaType NBTAPI
      If the NBT tags (using NBTAPI) matches on the item.
    • POTION Link icon

      public static final MetaType POTION
      If the item is a specific potion.
    • UNBREAKABLE Link icon

      public static final MetaType UNBREAKABLE
      If the item is unbreakable.
  • Method Details Link icon

    • values Link icon

      public static MetaType[] 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 Link icon

      public static MetaType 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
    • getClazz Link icon

      @NotNull public @NotNull Class<? extends MetaTypeComparator> getClazz()
      Get the handler class of this meta.
      Returns:
      the handler class of this meta