Enum Class ProtocolPhase

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

public enum ProtocolPhase extends Enum<ProtocolPhase>
Stable public protocol phase.
  • Enum Constant Details

    • HANDSHAKE

      public static final ProtocolPhase HANDSHAKE
      Initial handshake.
    • STATUS

      public static final ProtocolPhase STATUS
      Status query.
    • LOGIN

      public static final ProtocolPhase LOGIN
      Login negotiation.
    • CONFIGURATION

      public static final ProtocolPhase CONFIGURATION
      Configuration negotiation.
    • PLAY

      public static final ProtocolPhase PLAY
      Active game protocol.
    • UNKNOWN

      public static final ProtocolPhase UNKNOWN
      Unclassified native phase.
  • Method Details

    • values

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