public static enum EndermanEscapeEvent.Reason extends Enum<EndermanEscapeEvent.Reason>
| Enum Constant and Description |
|---|
CRITICAL_HIT
The enderman has teleported away due to a critical hit
|
DROWN
Specific case for CRITICAL_HIT where the enderman is taking rain damage
|
INDIRECT
The enderman has teleported away due to indirect damage (ranged)
|
RUNAWAY
The enderman has stopped attacking and ran away
|
STARE
The enderman has teleported away due to the player staring at it during combat
|
| Modifier and Type | Method and Description |
|---|---|
static EndermanEscapeEvent.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndermanEscapeEvent.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndermanEscapeEvent.Reason RUNAWAY
public static final EndermanEscapeEvent.Reason INDIRECT
public static final EndermanEscapeEvent.Reason CRITICAL_HIT
public static final EndermanEscapeEvent.Reason STARE
public static final EndermanEscapeEvent.Reason DROWN
public static EndermanEscapeEvent.Reason[] values()
for (EndermanEscapeEvent.Reason c : EndermanEscapeEvent.Reason.values()) System.out.println(c);
public static EndermanEscapeEvent.Reason 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 © 2021. All rights reserved.