Enum ArmorEnchantmentTrigger
- java.lang.Object
-
- java.lang.Enum<ArmorEnchantmentTrigger>
-
- me.boboballoon.enhancedenchantments.enchantment.ArmorEnchantmentTrigger
-
- All Implemented Interfaces:
Serializable
,Comparable<ArmorEnchantmentTrigger>
,ArmorTrigger
,EnchantmentTrigger
public enum ArmorEnchantmentTrigger extends Enum<ArmorEnchantmentTrigger> implements ArmorTrigger
Represents all valid enchantment triggers for armor related enchantments
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_DAMAGE_TAKEN
Will fire when the player takes damage, event will return EntityDamageEvent
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArmorEnchantmentTrigger
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArmorEnchantmentTrigger[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_DAMAGE_TAKEN
public static final ArmorEnchantmentTrigger ON_DAMAGE_TAKEN
Will fire when the player takes damage, event will return EntityDamageEvent- See Also:
EntityDamageEvent
-
-
Method Detail
-
values
public static ArmorEnchantmentTrigger[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ArmorEnchantmentTrigger c : ArmorEnchantmentTrigger.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArmorEnchantmentTrigger valueOf(String name)
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
-
-