Enum Class EntityState
- All Implemented Interfaces:
Serializable
,Comparable<EntityState>
,Constable
A state a entity is in
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEntity is angry (Enderman
)Default stateEntity is gliding, for example a player using elytraEntity is open (Shulker
)Entity is peeking (Shulker
)Entity is fully puffed (PufferFish
)Entity is semi-puffed (PufferFish
)Entity is sleepingEntity is sneakingEntity is swimming -
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
static EntityState
Returns the enum constant of this class with the specified name.static EntityState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default state -
SLEEPING
Entity is sleeping -
SNEAKING
Entity is sneaking -
SEMI_PUFFED
Entity is semi-puffed (PufferFish
) -
PUFFED
Entity is fully puffed (PufferFish
) -
GLIDING
Entity is gliding, for example a player using elytra -
SWIMMING
Entity is swimming -
ANGRY
Entity is angry (Enderman
) -
PEEKING
Entity is peeking (Shulker
) -
OPEN
Entity is open (Shulker
)
-
-
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
-
getName
- Returns:
- The key this property is assigned to
-