Enum Class ConnectionState

java.lang.Object
java.lang.Enum<ConnectionState>
devs.beer.nativepackets.api.ConnectionState
All Implemented Interfaces:
Serializable, Comparable<ConnectionState>, Constable

public enum ConnectionState extends Enum<ConnectionState>
Lifecycle state of one physical connection and its optional Bukkit player.
  • Enum Constant Details

    • CONNECTED

      public static final ConnectionState CONNECTED
      The channel is open but no authenticated identity has been observed.
    • AUTHENTICATED

      public static final ConnectionState AUTHENTICATED
      An authenticated identity exists, but no CONFIGURATION or Bukkit player is current.
    • CONFIGURATION

      public static final ConnectionState CONFIGURATION
      The connection is in CONFIGURATION and has no associated Bukkit player.
    • PLAYER_ASSOCIATED

      public static final ConnectionState PLAYER_ASSOCIATED
      A real Bukkit player is associated, but both protocol directions are not in PLAY.
    • PLAY

      public static final ConnectionState PLAY
      A real Bukkit player is associated and both protocol directions are in PLAY.
    • CLOSED

      public static final ConnectionState CLOSED
      The physical connection has disconnected or its handler has retired.
  • Method Details

    • values

      public static ConnectionState[] 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 ConnectionState 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