Interface ServerHandshakePacketListener
- All Superinterfaces:
PacketListener,ServerboundPacketListener,ServerPacketListener
- All Known Implementing Classes:
MemoryServerHandshakePacketListenerImpl,ServerHandshakePacketListenerImpl
PacketListener for the server side of the HANDSHAKING protocol.
-
Field Summary
Fields inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
LOGGER -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleIntention(ClientIntentionPacket packet) There are two recognized intentions for initiating a handshake: logging in and acquiring server status.default ConnectionProtocolprotocol()Methods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, isAcceptingMessages, onDisconnect, shouldHandleMessageMethods inherited from interface net.minecraft.network.ServerboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
onPacketError
-
Method Details
-
protocol
- Specified by:
protocolin interfacePacketListener
-
handleIntention
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
-