Package org.bukkit.event.entity
Enum Class EntityExhaustionEvent.ExhaustionReason
java.lang.Object
java.lang.Enum<EntityExhaustionEvent.ExhaustionReason>
org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason
- All Implemented Interfaces:
Serializable
,Comparable<EntityExhaustionEvent.ExhaustionReason>
,Constable
- Enclosing class:
- EntityExhaustionEvent
public static enum EntityExhaustionEvent.ExhaustionReason
extends Enum<EntityExhaustionEvent.ExhaustionReason>
The reason for why a PlayerExhaustionEvent takes place
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_MINED
Player mines a block -
HUNGER_EFFECT
Player has the hunger potion effect -
DAMAGED
Player takes damage -
ATTACK
Player attacks another entity -
JUMP_SPRINT
Player is sprint jumping -
JUMP
Player jumps -
SWIM
Player swims one centimeter -
WALK_UNDERWATER
Player walks underwater one centimeter -
WALK_ON_WATER
Player moves on the surface of water one centimeter -
SPRINT
Player sprints one centimeter -
CROUCH
Player crouches one centimeter (does not effect exhaustion, but fires nonetheless) -
WALK
Player walks one centimeter (does not effect exhaustion, but fires nonetheless) -
REGEN
Player regenerated health -
UNKNOWN
Unknown exhaustion reason
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-