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
Author:
Andross
  • Enum Constant Details

    • ADVANCEDENCHANTMENTS

      public static final MetaType ADVANCEDENCHANTMENTS
    • ATTRIBUTE

      public static final MetaType ATTRIBUTE
    • DISPLAYNAME_CONTAINS

      public static final MetaType DISPLAYNAME_CONTAINS
    • DISPLAYNAME_EQUALS

      public static final MetaType DISPLAYNAME_EQUALS
    • DURABILITY

      public static final MetaType DURABILITY
    • ENCHANTMENT_CONTAINS

      public static final MetaType ENCHANTMENT_CONTAINS
    • ENCHANTMENT_EQUALS

      public static final MetaType ENCHANTMENT_EQUALS
    • ITEMSADDER

      public static final MetaType ITEMSADDER
    • LORE_CONTAINS

      public static final MetaType LORE_CONTAINS
    • LORE_CONTAINS_REGEX

      public static final MetaType LORE_CONTAINS_REGEX
    • LORE_EQUALS

      public static final MetaType LORE_EQUALS
    • LORE_LINE_CONTAINS

      public static final MetaType LORE_LINE_CONTAINS
    • MODELDATA_EQUALS

      public static final MetaType MODELDATA_EQUALS
    • NBTAPI

      public static final MetaType NBTAPI
    • POTION

      public static final MetaType POTION
    • UNBREAKABLE

      public static final MetaType 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 Class<? extends MetaTypeComparator> getClazz()
      Get the handler class of this meta
      Returns:
      the handler class of this meta