Enum Class Player.State

java.lang.Object
java.lang.Enum<Player.State>
net.risingworld.api.objects.Player.State
All Implemented Interfaces:
Serializable, Comparable<Player.State>, Constable
Enclosing class:
Player

public static enum Player.State extends Enum<Player.State>
Represents the player state.
  • Enum Constant Details

    • Uninitialized

      public static final Player.State Uninitialized
      Player state is uninitialized
    • Default

      public static final Player.State Default
      Default player state
    • Crouching

      public static final Player.State Crouching
      Player is crouched
    • Flying

      public static final Player.State Flying
      Player is currently in flying mode
    • Swimming

      public static final Player.State Swimming
      Player is currently swimming
    • ClimbingLadder

      public static final Player.State ClimbingLadder
      Player is currently in climbing a ladder
    • Sitting

      public static final Player.State Sitting
      Player is currently sitting on a chair
    • Lying

      public static final Player.State Lying
      Player is lying in a bed or tent
    • Sleeping

      public static final Player.State Sleeping
      Player is sleeping in a bed or tent
    • Piano

      public static final Player.State Piano
      Player is playing a piano
    • Mount

      public static final Player.State Mount
      Player is riding a mount
    • Vehicle

      public static final Player.State Vehicle
      Player is sitting in a vehicle
    • Dead

      public static final Player.State Dead
      Player is dead
  • Method Details

    • values

      public static Player.State[] 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

      public static Player.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • get

      public static Player.State get(int ordinal)