Enum BowEnchantmentTrigger
- java.lang.Object
-
- java.lang.Enum<BowEnchantmentTrigger>
-
- me.boboballoon.enhancedenchantments.enchantment.BowEnchantmentTrigger
-
- All Implemented Interfaces:
Serializable
,Comparable<BowEnchantmentTrigger>
,BowTrigger
,EnchantmentTrigger
public enum BowEnchantmentTrigger extends Enum<BowEnchantmentTrigger> implements BowTrigger
Represents all valid enchantment triggers for bow related enchantments
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_ARROW_FIRED
Will fire when the bow fires an arrow, event will return EntityShootBowEventON_ARROW_HIT
Will fire when an arrow hits an entity, event will return ProjectileHitEvent
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BowEnchantmentTrigger
valueOf(String name)
Returns the enum constant of this type with the specified name.static BowEnchantmentTrigger[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_ARROW_FIRED
public static final BowEnchantmentTrigger ON_ARROW_FIRED
Will fire when the bow fires an arrow, event will return EntityShootBowEvent- See Also:
EntityShootBowEvent
-
ON_ARROW_HIT
public static final BowEnchantmentTrigger ON_ARROW_HIT
Will fire when an arrow hits an entity, event will return ProjectileHitEvent- See Also:
ProjectileHitEvent
-
-
Method Detail
-
values
public static BowEnchantmentTrigger[] 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 (BowEnchantmentTrigger c : BowEnchantmentTrigger.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BowEnchantmentTrigger 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
-
-