Class GamePacketHandler
java.lang.Object
com.hypixel.hytale.server.core.io.PacketHandler
com.hypixel.hytale.server.core.io.handlers.GenericPacketHandler
com.hypixel.hytale.server.core.io.handlers.game.GamePacketHandler
- All Implemented Interfaces:
IPacketHandler,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 final Deque<SyncInteractionChain> private PlayerDeprecated.private PlayerRefprivate static final doubleFields inherited from class com.hypixel.hytale.server.core.io.handlers.GenericPacketHandler
packetHandlersFields 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
ConstructorsConstructorDescriptionGamePacketHandler(io.netty.channel.Channel channel, ProtocolVersion protocolVersion, PlayerAuthentication auth) -
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(io.netty.channel.ChannelHandlerContext ctx) voiddisconnect(String message) voidhandle(RequestFlyCameraMode packet) voidhandle(Disconnect packet) voidhandle(MountMovement packet) voidhandle(SyncInteractionChains packet) voidhandle(ChatMessage packet) voidhandle(CustomPageEvent packet) voidhandle(UpdateLanguage packet) voidhandle(RequestMachinimaActorModel packet) voidhandle(UpdateMachinimaScene packet) voidhandle(ClientMovement packet) voidhandle(ClientPlaceBlock packet) voidhandle(ClientReady packet) voidhandle(MouseInteraction packet) voidhandle(RemoveMapMarker packet) voidhandle(SyncPlayerPreferences packet) voidhandle(SetServerAccess packet) voidhandle(UpdateServerAccess packet) voidhandle(RequestAssets packet) voidhandle(ViewRadius packet) protected voidhandle(ClientOpenWindow packet) voidhandle(CloseWindow packet) voidhandle(SendWindowAction packet) voidvoidhandle(TeleportToWorldMapMarker packet) voidhandle(TeleportToWorldMapPosition packet) voidhandle(UpdateWorldMapVisible packet) protected voidvoidsetPlayerRef(PlayerRef playerRef, Player playerComponent) Methods inherited from class com.hypixel.hytale.server.core.io.handlers.GenericPacketHandler
accept, newHandlerArray, registerHandler, registerNoOpHandlers, registerSubPacketHandlerMethods inherited from class com.hypixel.hytale.server.core.io.PacketHandler
clearTimeout, disconnect0, getAuth, getChannel, getClientReadyForChunksFuture, getDisconnectReason, getOperationTimeoutThreshold, getPacketStatsRecorder, getPingInfo, getProtocolVersion, getQueuedPacketsCount, handle, handlePong, isCompressionEnabled, isLANConnection, isLocalConnection, logCloseMessage, logConnectionTimings, registered, registered0, sendPing, setClientReadyForChunksFuture, setCompressionEnabled, setQueuePackets, setTimeout, stillActive, tickPing, tryFlush, unregistered, unregistered0, write, write, write, writeNoCache, writePacketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.io.handlers.IPacketHandler
registerHandler, registerNoOpHandlers
-
Field Details
-
RELATIVE_POSITION_DELTA_SCALE
private static final double RELATIVE_POSITION_DELTA_SCALE- See Also:
-
playerRef
-
playerComponent
Deprecated. -
interactionPacketQueue
-
-
Constructor Details
-
GamePacketHandler
public GamePacketHandler(@Nonnull io.netty.channel.Channel channel, @Nonnull ProtocolVersion protocolVersion, @Nonnull PlayerAuthentication auth)
-
-
Method Details
-
getInteractionPacketQueue
-
getPlayerRef
- Specified by:
getPlayerRefin interfaceIPacketHandler
-
setPlayerRef
-
getIdentifier
- Specified by:
getIdentifierin interfaceIPacketHandler- Specified by:
getIdentifierin classPacketHandler
-
registerHandlers
protected void registerHandlers() -
closed
public void closed(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
closedin classPacketHandler
-
disconnect
- Overrides:
disconnectin classPacketHandler
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-
handle
-