Enum Class ProtocolState

java.lang.Object
java.lang.Enum<ProtocolState>
org.geysermc.geyser.api.network.ProtocolState
All Implemented Interfaces:
Serializable, Comparable<ProtocolState>, Constable

public enum ProtocolState extends Enum<ProtocolState>
Represents the protocol state of a Java network connection.
Since:
2.9.2
  • Enum Constant Details

    • HANDSHAKE

      public static final ProtocolState HANDSHAKE
      The handshake state.
    • GAME

      public static final ProtocolState GAME
      The game state.
    • STATUS

      public static final ProtocolState STATUS
      The status state.
    • LOGIN

      public static final ProtocolState LOGIN
      The login state.
    • CONFIGURATION

      public static final ProtocolState CONFIGURATION
      The configuration state.
  • Method Details

    • values

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