Package fr.andross.banitem.items.meta
Enum Class MetaType
- All Implemented Interfaces:
Serializable
,Comparable<MetaType>
,Constable
A simple enumeration for customizable item metas.
- Version:
- 3.4.1
- Author:
- Andross
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMatch specific AdvancedEnchantments plugin enchantments.Match the item attribute.If the display name of the item contains a specific value.If the display name of the item is exactly equals to a specific value.If the display name of the item match a specific regex.If the durability of the item match a specific value.If the item contains specific enchantment(s).If the item enchantments match exactly the specified enchantment(s).If the item match an ItemsAdder item.If the item lore contains a lore.If the item lore match a regex.If the item lore is exactly the same as a specified one.If a line from an item lore contains a specific value.If the item model data is equals to a specified value.If the NBT tags (using NBTAPI) matches on the item.If the item is a specific potion.If the item is unbreakable. -
Method Summary
Modifier and TypeMethodDescription@NotNull Class
<? extends MetaTypeComparator> getClazz()
Get the handler class of this meta.static MetaType
Returns the enum constant of this class with the specified name.static MetaType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADVANCEDENCHANTMENTS
Match specific AdvancedEnchantments plugin enchantments. -
ATTRIBUTE
Match the item attribute. -
DISPLAYNAME_CONTAINS
If the display name of the item contains a specific value. -
DISPLAYNAME_EQUALS
If the display name of the item is exactly equals to a specific value. -
DISPLAYNAME_EQUALS_REGEX
If the display name of the item match a specific regex. -
DURABILITY
If the durability of the item match a specific value. -
ENCHANTMENT_CONTAINS
If the item contains specific enchantment(s). -
ENCHANTMENT_EQUALS
If the item enchantments match exactly the specified enchantment(s). -
ITEMSADDER
If the item match an ItemsAdder item. -
LORE_CONTAINS
If the item lore contains a lore. -
LORE_CONTAINS_REGEX
If the item lore match a regex. -
LORE_EQUALS
If the item lore is exactly the same as a specified one. -
LORE_LINE_CONTAINS
If a line from an item lore contains a specific value. -
MODELDATA_EQUALS
If the item model data is equals to a specified value. -
NBTAPI
If the NBT tags (using NBTAPI) matches on the item. -
POTION
If the item is a specific potion. -
UNBREAKABLE
If the item is unbreakable.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getClazz
Get the handler class of this meta.- Returns:
- the handler class of this meta
-