Package net.risingworld.api.objects
Enum Class Player.State
- All Implemented Interfaces:
Serializable
,Comparable<Player.State>
,Constable
- Enclosing class:
Player
Represents the player state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionPlayer is currently in climbing a ladderPlayer is crouchedPlayer is deadDefault player statePlayer is currently in flying modePlayer is lying in a bed or tentPlayer is riding a mountPlayer is playing a pianoPlayer is currently sitting on a chairPlayer is sleeping in a bed or tentPlayer is currently swimmingPlayer state is uninitializedPlayer is sitting in a vehicle -
Method Summary
Modifier and TypeMethodDescriptionstatic Player.State
get
(int ordinal) static Player.State
Returns the enum constant of this class with the specified name.static Player.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Uninitialized
Player state is uninitialized -
Default
Default player state -
Crouching
Player is crouched -
Flying
Player is currently in flying mode -
Swimming
Player is currently swimming -
ClimbingLadder
Player is currently in climbing a ladder -
Sitting
Player is currently sitting on a chair -
Lying
Player is lying in a bed or tent -
Sleeping
Player is sleeping in a bed or tent -
Piano
Player is playing a piano -
Mount
Player is riding a mount -
Vehicle
Player is sitting in a vehicle -
Dead
Player is dead
-
-
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
-
get
-