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:
IPacketReceiver
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.core.io.PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PlayerCommonAssetsprivate intprivate booleanprivate final byte[]private final HostAddressprivate final Stringprivate final UUIDFields inherited from class com.hypixel.hytale.server.core.io.handlers.GenericConnectionPacketHandler
languageFields inherited from class com.hypixel.hytale.server.core.io.PacketHandler
auth, channel, clientReadyForChunksFuture, clientReadyForChunksFutureStack, disconnectReason, MAX_PACKET_ID, pingIdRandom, pingInfo, protocolVersion, queuedPackets, queuePackets, registered -
Constructor Summary
ConstructorsConstructorDescriptionSetupPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, PlayerAuthentication auth) SetupPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, UUID uuid, String username) SetupPacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, String language, UUID uuid, String username, byte[] referralData, HostAddress referralSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclosed(io.netty.channel.ChannelHandlerContext ctx) voidhandle(Disconnect packet) voidhandle(PlayerOptions packet) voidhandle(RequestAssets packet) voidhandle(ViewRadius packet) voidregistered0(PacketHandler oldHandler) Methods inherited from class com.hypixel.hytale.server.core.io.PacketHandler
clearTimeout, disconnect, disconnect0, getAuth, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, handle, handlePong, isCompressionEnabled, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, sendPing, setClientReadyForChunksFuture, setCompressionEnabled, setQueuePackets, setTimeout, stillActive, tickPing, tryFlush, unregistered, unregistered0, write, write, write, writeNoCache, writePacket
-
Field Details
-
uuid
-
username
-
referralData
private final byte[] referralData -
referralSource
-
assets
-
receivedRequest
private boolean receivedRequest -
clientViewRadiusChunks
private int clientViewRadiusChunks
-
-
Constructor Details
-
SetupPacketHandler
public SetupPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, String language, UUID uuid, String username) -
SetupPacketHandler
public SetupPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, String language, UUID uuid, String username, byte[] referralData, HostAddress referralSource) -
SetupPacketHandler
public SetupPacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, String language, @Nonnull PlayerAuthentication auth)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler
-
registered0
- Overrides:
registered0in classPacketHandler
-
accept
- Specified by:
acceptin classPacketHandler
-
closed
public void closed(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
closedin classPacketHandler
-
handle
-
handle
-
handle
-
handle
-