public static enum EntityExhaustionEvent.ExhaustionReason extends Enum<EntityExhaustionEvent.ExhaustionReason>
| Enum Constant and Description | 
|---|
ATTACK
Player attacks another entity 
 | 
BLOCK_MINED
Player mines a block 
 | 
CROUCH
Player crouches one centimeter (does not effect exhaustion, but fires
 nonetheless) 
 | 
DAMAGED
Player takes damage 
 | 
HUNGER_EFFECT
Player has the hunger potion effect 
 | 
JUMP
Player jumps 
 | 
JUMP_SPRINT
Player is sprint jumping 
 | 
REGEN
Player regenerated health 
 | 
SPRINT
Player sprints one centimeter 
 | 
SWIM
Player swims one centimeter 
 | 
UNKNOWN
Unknown exhaustion reason 
 | 
WALK
Player walks one centimeter (does not effect exhaustion, but fires
 nonetheless) 
 | 
WALK_ON_WATER
Player moves on the surface of water one centimeter 
 | 
WALK_UNDERWATER
Player walks underwater one centimeter 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static EntityExhaustionEvent.ExhaustionReason | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static EntityExhaustionEvent.ExhaustionReason[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final EntityExhaustionEvent.ExhaustionReason BLOCK_MINED
public static final EntityExhaustionEvent.ExhaustionReason HUNGER_EFFECT
public static final EntityExhaustionEvent.ExhaustionReason DAMAGED
public static final EntityExhaustionEvent.ExhaustionReason ATTACK
public static final EntityExhaustionEvent.ExhaustionReason JUMP_SPRINT
public static final EntityExhaustionEvent.ExhaustionReason JUMP
public static final EntityExhaustionEvent.ExhaustionReason SWIM
public static final EntityExhaustionEvent.ExhaustionReason WALK_UNDERWATER
public static final EntityExhaustionEvent.ExhaustionReason WALK_ON_WATER
public static final EntityExhaustionEvent.ExhaustionReason SPRINT
public static final EntityExhaustionEvent.ExhaustionReason CROUCH
public static final EntityExhaustionEvent.ExhaustionReason WALK
public static final EntityExhaustionEvent.ExhaustionReason REGEN
public static final EntityExhaustionEvent.ExhaustionReason UNKNOWN
public static EntityExhaustionEvent.ExhaustionReason[] values()
for (EntityExhaustionEvent.ExhaustionReason c : EntityExhaustionEvent.ExhaustionReason.values()) System.out.println(c);
public static EntityExhaustionEvent.ExhaustionReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.