Enum Class PacketType

java.lang.Object
java.lang.Enum<PacketType>
com.quietterminal.neon.core.PacketType
All Implemented Interfaces:
Serializable, Comparable<PacketType>, Constable

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

    • CONNECT_REQUEST

      public static final PacketType CONNECT_REQUEST
    • CONNECT_ACCEPT

      public static final PacketType CONNECT_ACCEPT
    • CONNECT_DENY

      public static final PacketType CONNECT_DENY
    • SESSION_CONFIG

      public static final PacketType SESSION_CONFIG
    • PACKET_TYPE_REGISTRY

      public static final PacketType PACKET_TYPE_REGISTRY
    • HOST_REGISTER

      public static final PacketType HOST_REGISTER
    • PING

      public static final PacketType PING
    • PONG

      public static final PacketType PONG
    • DISCONNECT_NOTICE

      public static final PacketType DISCONNECT_NOTICE
    • ACK

      public static final PacketType ACK
    • RECONNECT_REQUEST

      public static final PacketType RECONNECT_REQUEST
    • GAME_PACKET

      public static final PacketType GAME_PACKET
  • Method Details

    • values

      public static PacketType[] 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 PacketType 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
    • getValue

      public byte getValue()
    • fromByte

      public static PacketType fromByte(byte b)
    • isCorePacket

      public boolean isCorePacket()