Contents
Class InitialPacketHandler
java.lang.Object
com.hypixel.hytale.server.core.io.PacketHandler
com.hypixel.hytale.server.core.io.handlers.InitialPacketHandler
- All Implemented Interfaces:
ConnectionHandler, IPacketReceiver
-
Nested Class Summary
Nested classes/interfaces inherited from class PacketHandler
PacketHandler.DisconnectReason, PacketHandler.PingInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class PacketHandler
DEFAULT_STREAM_PRIORITIES, MAX_PACKET_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ToServerPacket packet) Called to accept the given incoming packetvoiddisconnect(FormattedMessage message) Called to disconnect this connection for the given reason.voidhandle(ClientDisconnect packet) voidvoidhandle(InsecurePlayerOptions packet) voidregistered0(ConnectionHandler oldHandler) Methods inherited from class PacketHandler
checkStreamOpenRateLimit, closed, compareAndSetChannel, disconnect, getAccountProfile, 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
-
Field Details
-
EDITOR_PACKET_HANDLER_SUPPLIER
@Nullable public static AuthenticationPacketHandler.AuthHandlerSupplier EDITOR_PACKET_HANDLER_SUPPLIER
-
-
Constructor Details
-
InitialPacketHandler
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifierin classPacketHandler- Returns:
- the unique identifier for 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
-
disconnect
Description copied from class:PacketHandlerCalled to disconnect this connection for the given reason.- Overrides:
disconnectin classPacketHandler- Parameters:
message- The formatted reason in which the connection is being disconnected
-
handle
-
handle
-
handle
-