Package devs.beer.nativepackets.api
Enum Class ConnectionState
- All Implemented Interfaces:
Serializable,Comparable<ConnectionState>,Constable
Lifecycle state of one physical connection and its optional Bukkit player.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn authenticated identity exists, but no CONFIGURATION or Bukkit player is current.The physical connection has disconnected or its handler has retired.The connection is in CONFIGURATION and has no associated Bukkit player.The channel is open but no authenticated identity has been observed.A real Bukkit player is associated and both protocol directions are in PLAY.A real Bukkit player is associated, but both protocol directions are not in PLAY. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionStateReturns the enum constant of this class with the specified name.static ConnectionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTED
The channel is open but no authenticated identity has been observed. -
AUTHENTICATED
An authenticated identity exists, but no CONFIGURATION or Bukkit player is current. -
CONFIGURATION
The connection is in CONFIGURATION and has no associated Bukkit player. -
PLAYER_ASSOCIATED
A real Bukkit player is associated, but both protocol directions are not in PLAY. -
PLAY
A real Bukkit player is associated and both protocol directions are in PLAY. -
CLOSED
The physical connection has disconnected or its handler has retired.
-
-
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
-