Contents
Class HandshakeHandler
java.lang.Object
com.hypixel.hytale.server.core.io.PacketHandler
com.hypixel.hytale.server.core.io.handlers.GenericConnectionPacketHandler
com.hypixel.hytale.server.core.io.handlers.login.HandshakeHandler
- All Implemented Interfaces:
ConnectionHandler, IPacketReceiver
- Direct Known Subclasses:
AuthenticationPacketHandler
Base handler for authentication handshake (player connections and status requests).
Implements mutual authentication via AuthGrant/AuthToken/ServerAuthToken packets.
Identity token and player data are received via the Connect packet (not Auth packet).
-
Nested Class Summary
Nested classes/interfaces inherited from class PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
Fields inherited from class PacketHandler
DEFAULT_STREAM_PRIORITIES, MAX_PACKET_ID -
Constructor Summary
ConstructorsConstructorDescriptionHandshakeHandler(ChannelConnection channel, ProtocolVersion protocolVersion, String language, ClientType clientType, String identityToken, byte[] referralData, HostAddress referralSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ToServerPacket packet) Called to accept the given incoming packetvoidvoidhandle(ClientDisconnect packet) voidregistered0(ConnectionHandler oldHandler) Methods inherited from class PacketHandler
checkStreamOpenRateLimit, closed, compareAndSetChannel, disconnect, disconnect, getAccountProfile, getAuth, getAuxiliaryChannelCount, getChannel, getChannel, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getIdentifier, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, getSniHostname, handle, handlePong, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, sendPing, setChannel, setChannel, setClientReadyForChunksFuture, setQueuePackets, stillActive, tickPing, tryFlush, unregistered, write, write, write, writeNoCache, writePacket
-
Constructor Details
-
HandshakeHandler
public HandshakeHandler(@Nonnull ChannelConnection channel, @Nonnull ProtocolVersion protocolVersion, @Nonnull String language, @Nonnull ClientType clientType, @Nonnull String identityToken, @Nullable byte[] referralData, @Nullable HostAddress referralSource)
-
-
Method Details
-
accept
Description copied from class:PacketHandlerCalled to accept the given incoming packet- Specified by:
acceptin classPacketHandler- Parameters:
packet- The packet instance to accept
-
registered0
-
handle
-
handle
-