Contents
Class SetupPacketHandler
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.SetupPacketHandler
- All Implemented Interfaces:
ConnectionHandler, IPacketReceiver
-
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
ConstructorsConstructorDescriptionSetupPacketHandler(ChannelConnection channel, ProtocolVersion protocolVersion, String language, PlayerAuthentication auth) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ToServerPacket packet) Called to accept the given incoming packetvoidclosed(NetworkChannel networkChannel) Called when the affiliated network channel has been closed.Returns the account to track for lookups, bans, and kicks.voidhandle(ClientDisconnect packet) voidhandle(RequestAssets packet) voidhandle(SetupFinalize packet) voidhandle(ViewRadius packet) voidregistered0(ConnectionHandler oldHandler) Methods inherited from class PacketHandler
checkStreamOpenRateLimit, compareAndSetChannel, disconnect, disconnect, getAuth, getAuxiliaryChannelCount, getChannel, getChannel, getChannel, getClientReadyForChunksFuture, getDisconnectReason, 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
-
SetupPacketHandler
public SetupPacketHandler(@Nonnull ChannelConnection channel, @Nonnull ProtocolVersion protocolVersion, String language, @Nonnull PlayerAuthentication auth)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler- Returns:
- the unique identifier for this handler
-
getAccountProfile
Description copied from class:PacketHandlerReturns the account to track for lookups, bans, and kicks.Override this method for authenticated handlers. The profile must be available before registration and remain available through cleanup. The account UUID and whether this method returns
nullmust remain stable for this handler's lifetime. Keep this method nonblocking and free of side effects. Registry membership does not perform access checks.- Overrides:
getAccountProfilein classPacketHandler- Returns:
- the account to track, or
nullto exclude this handler
-
registered0
-
accept
Description copied from class:PacketHandlerCalled to accept the given incoming packet- Specified by:
acceptin classPacketHandler- Parameters:
packet- The packet instance to accept
-
closed
Description copied from interface:ConnectionHandlerCalled when the affiliated network channel has been closed.- Specified by:
closedin interfaceConnectionHandler- Overrides:
closedin classPacketHandler- Parameters:
networkChannel- The network channel that was closed, or null if unknown
-
handle
-
handle
-
handle
-
handle
-