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