java.lang.Object
java.lang.Enum<PlayerState>
org.geysermc.mcprotocollib.protocol.data.game.entity.player.PlayerState
All Implemented Interfaces:
Serializable, Comparable<PlayerState>, Constable

public enum PlayerState extends Enum<PlayerState>
  • Enum Constant Details

    • START_SNEAKING

      public static final PlayerState START_SNEAKING
    • STOP_SNEAKING

      public static final PlayerState STOP_SNEAKING
    • LEAVE_BED

      public static final PlayerState LEAVE_BED
    • START_SPRINTING

      public static final PlayerState START_SPRINTING
    • STOP_SPRINTING

      public static final PlayerState STOP_SPRINTING
    • START_HORSE_JUMP

      public static final PlayerState START_HORSE_JUMP
    • STOP_HORSE_JUMP

      public static final PlayerState STOP_HORSE_JUMP
    • OPEN_VEHICLE_INVENTORY

      public static final PlayerState OPEN_VEHICLE_INVENTORY
    • START_ELYTRA_FLYING

      public static final PlayerState START_ELYTRA_FLYING
  • Method Details

    • values

      public static PlayerState[] 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 PlayerState 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
    • from

      public static PlayerState from(int id)