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

    • ADVANCEDENCHANTMENTS

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • values

      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

      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

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