Interface ServerHandshakePacketListener

All Superinterfaces:
PacketListener, ServerboundPacketListener, ServerPacketListener
All Known Implementing Classes:
MemoryServerHandshakePacketListenerImpl, ServerHandshakePacketListenerImpl

public interface ServerHandshakePacketListener extends ServerPacketListener
PacketListener for the server side of the HANDSHAKING protocol.
  • Method Details

    • protocol

      default ConnectionProtocol protocol()
      Specified by:
      protocol in interface PacketListener
    • handleIntention

      void handleIntention(ClientIntentionPacket packet)
      There are two recognized intentions for initiating a handshake: logging in and acquiring server status. The NetworkManager's protocol will be reconfigured according to the specified intention, although a login-intention must pass a versioncheck or receive a disconnect otherwise