Package org.bukkit.event.entity
Enum EntityUnleashEvent.UnleashReason
java.lang.Object
java.lang.Enum<EntityUnleashEvent.UnleashReason>
org.bukkit.event.entity.EntityUnleashEvent.UnleashReason
- All Implemented Interfaces:
- Serializable,- Comparable<EntityUnleashEvent.UnleashReason>,- java.lang.constant.Constable
- Enclosing class:
- EntityUnleashEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionWhen the entity's leashholder is more than 10 blocks awayWhen the entity's leashholder has died or logged out, and so is unleashedWhen the entity's leashholder attempts to unleash it
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static EntityUnleashEvent.UnleashReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
HOLDER_GONEWhen the entity's leashholder has died or logged out, and so is unleashed
- 
PLAYER_UNLEASHWhen the entity's leashholder attempts to unleash it
- 
DISTANCEWhen the entity's leashholder is more than 10 blocks away
- 
UNKNOWN
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-