Package net.minecraft.server.network
Class ServerPlayNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerPlayNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerPlayPacketListener,Tickable
public class ServerPlayNetworkHandler extends Object implements ServerPlayPacketListener, Tickable
- Mappings:
Namespace Name official lmintermediary net/minecraft/class_1643named net/minecraft/server/network/ServerPlayNetworkHandler
-
Field Summary
Fields Modifier and Type Field Description ClientConnectionconnectionprivate intcreativeItemDropThresholdprivate intfield_6723private intfield_6724private booleanfield_6725private intfield_6726private booleanfield_6735private longkeepAliveIdprivate longlastKeepAliveTimeprivate intlastTickMovePacketsCountprivate static LoggerLOGGERprivate intmessageCooldownServerPlayerEntityplayerprivate doublerequestedTeleportPosXprivate doublerequestedTeleportPosYprivate doublerequestedTeleportPosZprivate MinecraftServerserverprivate IntObjectStorage<Short>transactions -
Constructor Summary
Constructors Constructor Description ServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player) -
Method Summary
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLlm;c:Lorg/apache/logging/log4j/Logger;intermediary field_6720Lnet/minecraft/class_1643;field_6720:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/server/network/ServerPlayNetworkHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
connection
- Mappings:
Namespace Name Mixin selector official aLlm;a:Lek;intermediary field_6718Lnet/minecraft/class_1643;field_6718:Lnet/minecraft/class_1432;named connectionLnet/minecraft/server/network/ServerPlayNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
server
- Mappings:
Namespace Name Mixin selector official dLlm;d:Lnet/minecraft/server/MinecraftServer;intermediary field_6721Lnet/minecraft/class_1643;field_6721:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/network/ServerPlayNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
player
- Mappings:
Namespace Name Mixin selector official bLlm;b:Llf;intermediary field_6719Lnet/minecraft/class_1643;field_6719:Lnet/minecraft/class_1637;named playerLnet/minecraft/server/network/ServerPlayNetworkHandler;player:Lnet/minecraft/server/network/ServerPlayerEntity;
-
lastTickMovePacketsCount
private int lastTickMovePacketsCount- Mappings:
Namespace Name Mixin selector official eLlm;e:Iintermediary field_6722Lnet/minecraft/class_1643;field_6722:Inamed lastTickMovePacketsCountLnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickMovePacketsCount:I
-
field_6723
private int field_6723- Mappings:
Namespace Name Mixin selector official fLlm;f:Iintermediary field_6723Lnet/minecraft/class_1643;field_6723:Inamed field_6723Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_6723:I
-
field_6724
private int field_6724- Mappings:
Namespace Name Mixin selector official gLlm;g:Iintermediary field_6724Lnet/minecraft/class_1643;field_6724:Inamed field_6724Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_6724:I
-
field_6725
private boolean field_6725- Mappings:
Namespace Name Mixin selector official hLlm;h:Zintermediary field_6725Lnet/minecraft/class_1643;field_6725:Znamed field_6725Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_6725:Z
-
field_6726
private int field_6726- Mappings:
Namespace Name Mixin selector official iLlm;i:Iintermediary field_6726Lnet/minecraft/class_1643;field_6726:Inamed field_6726Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_6726:I
-
lastKeepAliveTime
private long lastKeepAliveTime- Mappings:
Namespace Name Mixin selector official jLlm;j:Jintermediary field_6727Lnet/minecraft/class_1643;field_6727:Jnamed lastKeepAliveTimeLnet/minecraft/server/network/ServerPlayNetworkHandler;lastKeepAliveTime:J
-
keepAliveId
private long keepAliveId- Mappings:
Namespace Name Mixin selector official kLlm;k:Jintermediary field_6728Lnet/minecraft/class_1643;field_6728:Jnamed keepAliveIdLnet/minecraft/server/network/ServerPlayNetworkHandler;keepAliveId:J
-
messageCooldown
private int messageCooldown- Mappings:
Namespace Name Mixin selector official lLlm;l:Iintermediary field_6729Lnet/minecraft/class_1643;field_6729:Inamed messageCooldownLnet/minecraft/server/network/ServerPlayNetworkHandler;messageCooldown:I
-
creativeItemDropThreshold
private int creativeItemDropThreshold- Mappings:
Namespace Name Mixin selector official mLlm;m:Iintermediary field_6730Lnet/minecraft/class_1643;field_6730:Inamed creativeItemDropThresholdLnet/minecraft/server/network/ServerPlayNetworkHandler;creativeItemDropThreshold:I
-
transactions
- Mappings:
Namespace Name Mixin selector official nLlm;n:Lnm;intermediary field_6731Lnet/minecraft/class_1643;field_6731:Lnet/minecraft/class_1697;named transactionsLnet/minecraft/server/network/ServerPlayNetworkHandler;transactions:Lnet/minecraft/util/IntObjectStorage;
-
requestedTeleportPosX
private double requestedTeleportPosX- Mappings:
Namespace Name Mixin selector official oLlm;o:Dintermediary field_6732Lnet/minecraft/class_1643;field_6732:Dnamed requestedTeleportPosXLnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPosX:D
-
requestedTeleportPosY
private double requestedTeleportPosY- Mappings:
Namespace Name Mixin selector official pLlm;p:Dintermediary field_6733Lnet/minecraft/class_1643;field_6733:Dnamed requestedTeleportPosYLnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPosY:D
-
requestedTeleportPosZ
private double requestedTeleportPosZ- Mappings:
Namespace Name Mixin selector official qLlm;q:Dintermediary field_6734Lnet/minecraft/class_1643;field_6734:Dnamed requestedTeleportPosZLnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPosZ:D
-
field_6735
private boolean field_6735- Mappings:
Namespace Name Mixin selector official rLlm;r:Zintermediary field_6735Lnet/minecraft/class_1643;field_6735:Znamed field_6735Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_6735:Z
-
-
Constructor Details
-
ServerPlayNetworkHandler
public ServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player)- Mappings:
Namespace Name Mixin selector official <init>Llm;<init>(Lnet/minecraft/server/MinecraftServer;Lek;Llf;)Vintermediary <init>Lnet/minecraft/class_1643;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1432;Lnet/minecraft/class_1637;)Vnamed <init>Lnet/minecraft/server/network/ServerPlayNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
-
Method Details
-
tick
public void tick() -
getConnection
- Mappings:
Namespace Name Mixin selector official aLlm;a()Lek;intermediary method_6124Lnet/minecraft/class_1643;method_6124()Lnet/minecraft/class_1432;named getConnectionLnet/minecraft/server/network/ServerPlayNetworkHandler;getConnection()Lnet/minecraft/network/ClientConnection;
-
disconnect
- Mappings:
Namespace Name Mixin selector official cLlm;c(Ljava/lang/String;)Vintermediary method_6129Lnet/minecraft/class_1643;method_6129(Ljava/lang/String;)Vnamed disconnectLnet/minecraft/server/network/ServerPlayNetworkHandler;disconnect(Ljava/lang/String;)V
-
onPlayerInput
- Specified by:
onPlayerInputin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lit;)Vintermediary method_5727Lnet/minecraft/class_1550;method_5727(Lnet/minecraft/class_1573;)Vnamed onPlayerInputLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInput(Lnet/minecraft/network/packet/c2s/play/PlayerInputC2SPacket;)V
-
validatePlayerMove
- Mappings:
Namespace Name Mixin selector official bLlm;b(Lip;)Zintermediary method_6128Lnet/minecraft/class_1643;method_6128(Lnet/minecraft/class_1564;)Znamed validatePlayerMoveLnet/minecraft/server/network/ServerPlayNetworkHandler;validatePlayerMove(Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;)Z
-
onPlayerMove
- Specified by:
onPlayerMovein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lip;)Vintermediary method_5723Lnet/minecraft/class_1550;method_5723(Lnet/minecraft/class_1564;)Vnamed onPlayerMoveLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerMove(Lnet/minecraft/network/packet/c2s/play/PlayerMoveC2SPacket;)V
-
requestTeleport
public void requestTeleport(double x, double y, double z, float yaw, float pitch)- Mappings:
Namespace Name Mixin selector official aLlm;a(DDDFF)Vintermediary method_6125Lnet/minecraft/class_1643;method_6125(DDDFF)Vnamed requestTeleportLnet/minecraft/server/network/ServerPlayNetworkHandler;requestTeleport(DDDFF)V
-
teleportRequest
public void teleportRequest(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket.Flag> set)- Mappings:
Namespace Name Mixin selector official aLlm;a(DDDFFLjava/util/Set;)Vintermediary method_6126Lnet/minecraft/class_1643;method_6126(DDDFFLjava/util/Set;)Vnamed teleportRequestLnet/minecraft/server/network/ServerPlayNetworkHandler;teleportRequest(DDDFFLjava/util/Set;)V
-
onPlayerAction
- Specified by:
onPlayerActionin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lir;)Vintermediary method_5725Lnet/minecraft/class_1550;method_5725(Lnet/minecraft/class_1569;)Vnamed onPlayerActionLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerAction(Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;)V
-
onPlayerInteractBlock
- Specified by:
onPlayerInteractBlockin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lja;)Vintermediary method_5734Lnet/minecraft/class_1550;method_5734(Lnet/minecraft/class_1582;)Vnamed onPlayerInteractBlockLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInteractBlock(Lnet/minecraft/network/packet/c2s/play/BlockPlacementC2SPacket;)V
-
onSpectatorTeleport
- Specified by:
onSpectatorTeleportin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liz;)Vintermediary method_5733Lnet/minecraft/class_1550;method_5733(Lnet/minecraft/class_1580;)Vnamed onSpectatorTeleportLnet/minecraft/network/listener/ServerPlayPacketListener;onSpectatorTeleport(Lnet/minecraft/network/packet/c2s/play/SpectatorTeleportC2SPacket;)V
-
onResourcePackStatus
- Specified by:
onResourcePackStatusin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liu;)Vintermediary method_5728Lnet/minecraft/class_1550;method_5728(Lnet/minecraft/class_1574;)Vnamed onResourcePackStatusLnet/minecraft/network/listener/ServerPlayPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/play/ResourcePackStatusC2SPacket;)V
-
onDisconnected
- Specified by:
onDisconnectedin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLep;a(Leu;)Vintermediary method_5148Lnet/minecraft/class_1438;method_5148(Lnet/minecraft/class_1444;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
sendPacket
- Mappings:
Namespace Name Mixin selector official aLlm;a(Lff;)Vintermediary method_6127Lnet/minecraft/class_1643;method_6127(Lnet/minecraft/class_1457;)Vnamed sendPacketLnet/minecraft/server/network/ServerPlayNetworkHandler;sendPacket(Lnet/minecraft/network/Packet;)V
-
onUpdateSelectedSlot
- Specified by:
onUpdateSelectedSlotin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liv;)Vintermediary method_5729Lnet/minecraft/class_1550;method_5729(Lnet/minecraft/class_1576;)Vnamed onUpdateSelectedSlotLnet/minecraft/network/listener/ServerPlayPacketListener;onUpdateSelectedSlot(Lnet/minecraft/network/packet/c2s/play/UpdateSelectedSlotC2SPacket;)V
-
onChatMessage
- Specified by:
onChatMessagein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lie;)Vintermediary method_5713Lnet/minecraft/class_1550;method_5713(Lnet/minecraft/class_1552;)Vnamed onChatMessageLnet/minecraft/network/listener/ServerPlayPacketListener;onChatMessage(Lnet/minecraft/network/packet/c2s/play/ChatMessageC2SPacket;)V
-
executeCommand
- Mappings:
Namespace Name Mixin selector official dLlm;d(Ljava/lang/String;)Vintermediary method_6131Lnet/minecraft/class_1643;method_6131(Ljava/lang/String;)Vnamed executeCommandLnet/minecraft/server/network/ServerPlayNetworkHandler;executeCommand(Ljava/lang/String;)V
-
onHandSwing
- Specified by:
onHandSwingin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liy;)Vintermediary method_5732Lnet/minecraft/class_1550;method_5732(Lnet/minecraft/class_1579;)Vnamed onHandSwingLnet/minecraft/network/listener/ServerPlayPacketListener;onHandSwing(Lnet/minecraft/network/packet/c2s/play/HandSwingC2SPacket;)V
-
onClientCommand
- Specified by:
onClientCommandin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lis;)Vintermediary method_5726Lnet/minecraft/class_1550;method_5726(Lnet/minecraft/class_1571;)Vnamed onClientCommandLnet/minecraft/network/listener/ServerPlayPacketListener;onClientCommand(Lnet/minecraft/network/packet/c2s/play/ClientCommandC2SPacket;)V
-
onPlayerInteractEntity
- Specified by:
onPlayerInteractEntityin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lin;)Vintermediary method_5721Lnet/minecraft/class_1550;method_5721(Lnet/minecraft/class_1561;)Vnamed onPlayerInteractEntityLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInteractEntity(Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;)V
-
onClientStatus
- Specified by:
onClientStatusin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lig;)Vintermediary method_5714Lnet/minecraft/class_1550;method_5714(Lnet/minecraft/class_1553;)Vnamed onClientStatusLnet/minecraft/network/listener/ServerPlayPacketListener;onClientStatus(Lnet/minecraft/network/packet/c2s/play/ClientDataActionC2SPacket;)V
-
onGuiClose
- Specified by:
onGuiClosein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lil;)Vintermediary method_5719Lnet/minecraft/class_1550;method_5719(Lnet/minecraft/class_1559;)Vnamed onGuiCloseLnet/minecraft/network/listener/ServerPlayPacketListener;onGuiClose(Lnet/minecraft/network/packet/c2s/play/GuiCloseC2SPacket;)V
-
onClickWindow
- Specified by:
onClickWindowin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lik;)Vintermediary method_5718Lnet/minecraft/class_1550;method_5718(Lnet/minecraft/class_1558;)Vnamed onClickWindowLnet/minecraft/network/listener/ServerPlayPacketListener;onClickWindow(Lnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;)V
-
onButtonClick
- Specified by:
onButtonClickin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lij;)Vintermediary method_5717Lnet/minecraft/class_1550;method_5717(Lnet/minecraft/class_1557;)Vnamed onButtonClickLnet/minecraft/network/listener/ServerPlayPacketListener;onButtonClick(Lnet/minecraft/network/packet/c2s/play/ButtonClickC2SPacket;)V
-
onCreativeInventoryAction
- Specified by:
onCreativeInventoryActionin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liw;)Vintermediary method_5730Lnet/minecraft/class_1550;method_5730(Lnet/minecraft/class_1577;)Vnamed onCreativeInventoryActionLnet/minecraft/network/listener/ServerPlayPacketListener;onCreativeInventoryAction(Lnet/minecraft/network/packet/c2s/play/CreativeInventoryActionC2SPacket;)V
-
onConfirmTransaction
- Specified by:
onConfirmTransactionin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lii;)Vintermediary method_5716Lnet/minecraft/class_1550;method_5716(Lnet/minecraft/class_1556;)Vnamed onConfirmTransactionLnet/minecraft/network/listener/ServerPlayPacketListener;onConfirmTransaction(Lnet/minecraft/network/packet/c2s/play/ConfirmGuiActionC2SPacket;)V
-
onSignUpdate
- Specified by:
onSignUpdatein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lix;)Vintermediary method_5731Lnet/minecraft/class_1550;method_5731(Lnet/minecraft/class_1578;)Vnamed onSignUpdateLnet/minecraft/network/listener/ServerPlayPacketListener;onSignUpdate(Lnet/minecraft/network/packet/c2s/play/UpdateSignC2SPacket;)V
-
onKeepAlive
- Specified by:
onKeepAlivein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lio;)Vintermediary method_5722Lnet/minecraft/class_1550;method_5722(Lnet/minecraft/class_1563;)Vnamed onKeepAliveLnet/minecraft/network/listener/ServerPlayPacketListener;onKeepAlive(Lnet/minecraft/network/packet/c2s/play/KeepAliveC2SPacket;)V
-
method_6130
private long method_6130()- Mappings:
Namespace Name Mixin selector official dLlm;d()Jintermediary method_6130Lnet/minecraft/class_1643;method_6130()Jnamed method_6130Lnet/minecraft/server/network/ServerPlayNetworkHandler;method_6130()J
-
onPlayerAbilities
- Specified by:
onPlayerAbilitiesin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liq;)Vintermediary method_5724Lnet/minecraft/class_1550;method_5724(Lnet/minecraft/class_1568;)Vnamed onPlayerAbilitiesLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerAbilities(Lnet/minecraft/network/packet/c2s/play/UpdatePlayerAbilitiesC2SPacket;)V
-
onRequestCommandCompletions
- Specified by:
onRequestCommandCompletionsin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lid;)Vintermediary method_5712Lnet/minecraft/class_1550;method_5712(Lnet/minecraft/class_1551;)Vnamed onRequestCommandCompletionsLnet/minecraft/network/listener/ServerPlayPacketListener;onRequestCommandCompletions(Lnet/minecraft/network/packet/c2s/play/RequestCommandCompletionsC2SPacket;)V
-
onClientSettings
- Specified by:
onClientSettingsin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lih;)Vintermediary method_5715Lnet/minecraft/class_1550;method_5715(Lnet/minecraft/class_1555;)Vnamed onClientSettingsLnet/minecraft/network/listener/ServerPlayPacketListener;onClientSettings(Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;)V
-
onCustomPayload
- Specified by:
onCustomPayloadin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lim;)Vintermediary method_5720Lnet/minecraft/class_1550;method_5720(Lnet/minecraft/class_1560;)Vnamed onCustomPayloadLnet/minecraft/network/listener/ServerPlayPacketListener;onCustomPayload(Lnet/minecraft/network/packet/c2s/play/CustomPayloadC2SPacket;)V
-