Enum TeamEnchantment.Target
- All Implemented Interfaces:
Serializable
,Comparable<TeamEnchantment.Target>
,java.lang.constant.Constable
- Enclosing class:
TeamEnchantment
The type of item a
TeamEnchantment
shall target-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TeamEnchantment.Target
byMaterial
(Material mat) Deprecated.Might break in the future when Spigot releases their ItemType APIstatic @Nullable TeamEnchantment.Target
static TeamEnchantment.Target
Returns the enum constant of this type with the specified name.static TeamEnchantment.Target[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PICKAXE
-
AXE
E.g.Material.DIAMOND_AXE
-
SWORD
-
ARMOR
-
MACE
E.g. The Mace Weapon
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
byName
-
byMaterial
Deprecated.Might break in the future when Spigot releases their ItemType APIGet theTeamEnchantment.Target
by the material of the item used- Parameters:
mat
- The material- Returns:
- The target or null if not found
-