Enum Class PacketType.Handshaking.Client

java.lang.Object
java.lang.Enum<PacketType.Handshaking.Client>
com.github.retrooper.packetevents.protocol.packettype.PacketType.Handshaking.Client
All Implemented Interfaces:
PacketTypeCommon, PacketTypeConstant, ServerBoundPacket, Serializable, Comparable<PacketType.Handshaking.Client>, Constable
Enclosing class:
PacketType.Handshaking

public static enum PacketType.Handshaking.Client extends Enum<PacketType.Handshaking.Client> implements PacketTypeConstant, ServerBoundPacket
  • Enum Constant Details

    • HANDSHAKE

      public static final PacketType.Handshaking.Client HANDSHAKE
    • LEGACY_SERVER_LIST_PING

      public static final PacketType.Handshaking.Client LEGACY_SERVER_LIST_PING
      Technically not part of the current protocol, but clients older than 1.7 will send this to initiate Server List Ping. 1.8 and newer servers will handle it correctly though.
  • Method Details

    • values

      public static PacketType.Handshaking.Client[] 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.Handshaking.Client 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
    • getById

      @Nullable public static @Nullable PacketTypeCommon getById(int packetID)
    • getId

      public int getId()
      Specified by:
      getId in interface PacketTypeConstant
    • getSide

      public PacketSide getSide()
      Specified by:
      getSide in interface PacketTypeCommon