Package org.bukkit.event.entity
Enum EntityExhaustionEvent.ExhaustionReason
java.lang.Object
java.lang.Enum<EntityExhaustionEvent.ExhaustionReason>
org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason
- All Implemented Interfaces:
- Serializable,- Comparable<EntityExhaustionEvent.ExhaustionReason>,- java.lang.constant.Constable
- Enclosing class:
- EntityExhaustionEvent
public static enum EntityExhaustionEvent.ExhaustionReason
extends Enum<EntityExhaustionEvent.ExhaustionReason>
The reason for why a PlayerExhaustionEvent takes place
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionPlayer attacks another entityPlayer mines a blockPlayer crouches one centimeter (does not effect exhaustion, but fires nonetheless)Player takes damagePlayer has the hunger potion effectPlayer jumpsPlayer is sprint jumpingPlayer regenerated healthPlayer sprints one centimeterPlayer swims one centimeterUnknown exhaustion reasonPlayer walks one centimeter (does not effect exhaustion, but fires nonetheless)Player moves on the surface of water one centimeterPlayer walks underwater one centimeter
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
BLOCK_MINEDPlayer mines a block
- 
HUNGER_EFFECTPlayer has the hunger potion effect
- 
DAMAGEDPlayer takes damage
- 
ATTACKPlayer attacks another entity
- 
JUMP_SPRINTPlayer is sprint jumping
- 
JUMPPlayer jumps
- 
SWIMPlayer swims one centimeter
- 
WALK_UNDERWATERPlayer walks underwater one centimeter
- 
WALK_ON_WATERPlayer moves on the surface of water one centimeter
- 
SPRINTPlayer sprints one centimeter
- 
CROUCHPlayer crouches one centimeter (does not effect exhaustion, but fires nonetheless)
- 
WALKPlayer walks one centimeter (does not effect exhaustion, but fires nonetheless)
- 
REGENPlayer regenerated health
- 
UNKNOWNUnknown exhaustion reason
 
- 
- 
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
 
 
-