Package net.minecraft.server.network
Class ServerPlayNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerPlayNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerPlayPacketListener,Tickable
- Mappings:
Namespace Name official lmintermediary net/minecraft/class_2107named net/minecraft/server/network/ServerPlayNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ClientConnectionprivate intprivate intprivate intprivate booleanprivate intprivate booleanprivate longprivate longprivate intprivate static final Loggerprivate intprivate doubleprivate doubleprivate doubleprivate final MinecraftServerprivate IntObjectStorage<Short> -
Constructor Summary
ConstructorsConstructorDescriptionServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(String reason) private voidexecuteCommand(String string) private longvoidonButtonClick(ButtonClickC2SPacket packet) voidonChatMessage(ChatMessageC2SPacket packet) voidonClickWindow(ClickWindowC2SPacket packet) voidvoidvoidonClientStatus(ClientStatusC2SPacket packet) voidvoidvoidvoidonDisconnected(Text reason) voidonGuiClose(GuiCloseC2SPacket packet) voidonHandSwing(HandSwingC2SPacket packet) voidonKeepAlive(KeepAliveC2SPacket packet) voidvoidonPlayerAction(PlayerActionC2SPacket packet) voidonPlayerInput(PlayerInputC2SPacket packet) voidvoidvoidonPlayerMove(PlayerMoveC2SPacket packet) voidvoidvoidonSignUpdate(UpdateSignC2SPacket packet) voidvoidvoidrequestTeleport(double x, double y, double z, float yaw, float pitch) voidsendPacket(Packet packet) voidteleportRequest(double x, double y, double z, float yaw, float pitch, Set<PlayerPositionLookS2CPacket.Flag> set) voidtick()private booleanvalidatePlayerMove(PlayerMoveC2SPacket playerMoveC2SPacket)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLlm;c:Lorg/apache/logging/log4j/Logger;intermediary field_8929Lnet/minecraft/class_2107;field_8929: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_8927Lnet/minecraft/class_2107;field_8927:Lnet/minecraft/class_1957;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_8930Lnet/minecraft/class_2107;field_8930: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_8928Lnet/minecraft/class_2107;field_8928:Lnet/minecraft/class_798;named playerLnet/minecraft/server/network/ServerPlayNetworkHandler;player:Lnet/minecraft/entity/player/ServerPlayerEntity;
-
lastTickMovePacketsCount
private int lastTickMovePacketsCount- Mappings:
Namespace Name Mixin selector official eLlm;e:Iintermediary field_8931Lnet/minecraft/class_2107;field_8931:Inamed lastTickMovePacketsCountLnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickMovePacketsCount:I
-
field_11776
private int field_11776- Mappings:
Namespace Name Mixin selector official fLlm;f:Iintermediary field_11776Lnet/minecraft/class_2107;field_11776:Inamed field_11776Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_11776:I
-
field_8932
private int field_8932- Mappings:
Namespace Name Mixin selector official gLlm;g:Iintermediary field_8932Lnet/minecraft/class_2107;field_8932:Inamed field_8932Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_8932:I
-
field_8933
private boolean field_8933- Mappings:
Namespace Name Mixin selector official hLlm;h:Zintermediary field_8933Lnet/minecraft/class_2107;field_8933:Znamed field_8933Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_8933:Z
-
field_8934
private int field_8934- Mappings:
Namespace Name Mixin selector official iLlm;i:Iintermediary field_8934Lnet/minecraft/class_2107;field_8934:Inamed field_8934Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_8934:I
-
lastKeepAliveTime
private long lastKeepAliveTime- Mappings:
Namespace Name Mixin selector official jLlm;j:Jintermediary field_8935Lnet/minecraft/class_2107;field_8935:Jnamed lastKeepAliveTimeLnet/minecraft/server/network/ServerPlayNetworkHandler;lastKeepAliveTime:J
-
keepAliveId
private long keepAliveId- Mappings:
Namespace Name Mixin selector official kLlm;k:Jintermediary field_8937Lnet/minecraft/class_2107;field_8937:Jnamed keepAliveIdLnet/minecraft/server/network/ServerPlayNetworkHandler;keepAliveId:J
-
messageCooldown
private int messageCooldown- Mappings:
Namespace Name Mixin selector official lLlm;l:Iintermediary field_8938Lnet/minecraft/class_2107;field_8938:Inamed messageCooldownLnet/minecraft/server/network/ServerPlayNetworkHandler;messageCooldown:I
-
creativeItemDropThreshold
private int creativeItemDropThreshold- Mappings:
Namespace Name Mixin selector official mLlm;m:Iintermediary field_8939Lnet/minecraft/class_2107;field_8939:Inamed creativeItemDropThresholdLnet/minecraft/server/network/ServerPlayNetworkHandler;creativeItemDropThreshold:I
-
transactions
- Mappings:
Namespace Name Mixin selector official nLlm;n:Lnm;intermediary field_8940Lnet/minecraft/class_2107;field_8940:Lnet/minecraft/class_833;named transactionsLnet/minecraft/server/network/ServerPlayNetworkHandler;transactions:Lnet/minecraft/util/collection/IntObjectStorage;
-
requestedTeleportPosX
private double requestedTeleportPosX- Mappings:
Namespace Name Mixin selector official oLlm;o:Dintermediary field_8941Lnet/minecraft/class_2107;field_8941:Dnamed requestedTeleportPosXLnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPosX:D
-
requestedTeleportPosY
private double requestedTeleportPosY- Mappings:
Namespace Name Mixin selector official pLlm;p:Dintermediary field_8942Lnet/minecraft/class_2107;field_8942:Dnamed requestedTeleportPosYLnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPosY:D
-
requestedTeleportPosZ
private double requestedTeleportPosZ- Mappings:
Namespace Name Mixin selector official qLlm;q:Dintermediary field_8943Lnet/minecraft/class_2107;field_8943:Dnamed requestedTeleportPosZLnet/minecraft/server/network/ServerPlayNetworkHandler;requestedTeleportPosZ:D
-
field_8944
private boolean field_8944- Mappings:
Namespace Name Mixin selector official rLlm;r:Zintermediary field_8944Lnet/minecraft/class_2107;field_8944:Znamed field_8944Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_8944: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_2107;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1957;Lnet/minecraft/class_798;)Vnamed <init>Lnet/minecraft/server/network/ServerPlayNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/entity/player/ServerPlayerEntity;)V
-
-
Method Details
-
tick
public void tick() -
getConnection
- Mappings:
Namespace Name Mixin selector official aLlm;a()Lek;intermediary method_8167Lnet/minecraft/class_2107;method_8167()Lnet/minecraft/class_1957;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_8168Lnet/minecraft/class_2107;method_8168(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_7943Lnet/minecraft/class_2050;method_7943(Lnet/minecraft/class_2067;)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_10776Lnet/minecraft/class_2107;method_10776(Lnet/minecraft/class_2064;)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_7939Lnet/minecraft/class_2050;method_7939(Lnet/minecraft/class_2064;)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_8165Lnet/minecraft/class_2107;method_8165(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_10775Lnet/minecraft/class_2107;method_10775(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_7941Lnet/minecraft/class_2050;method_7941(Lnet/minecraft/class_2066;)Vnamed onPlayerActionLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerAction(Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;)V
-
onPlayerInteractBlock
- Specified by:
onPlayerInteractBlockin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lja;)Vintermediary method_7947Lnet/minecraft/class_2050;method_7947(Lnet/minecraft/class_731;)Vnamed onPlayerInteractBlockLnet/minecraft/network/listener/ServerPlayPacketListener;onPlayerInteractBlock(Lnet/minecraft/network/packet/c2s/play/PlayerInteractBlockC2SPacket;)V
-
onSpectatorTeleport
- Specified by:
onSpectatorTeleportin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liz;)Vintermediary method_10721Lnet/minecraft/class_2050;method_10721(Lnet/minecraft/class_2593;)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_10720Lnet/minecraft/class_2050;method_10720(Lnet/minecraft/class_2591;)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_7456Lnet/minecraft/class_701;method_7456(Lnet/minecraft/class_1982;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
sendPacket
- Mappings:
Namespace Name Mixin selector official aLlm;a(Lff;)Vintermediary method_8166Lnet/minecraft/class_2107;method_8166(Lnet/minecraft/class_700;)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_7944Lnet/minecraft/class_2050;method_7944(Lnet/minecraft/class_2068;)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_7929Lnet/minecraft/class_2050;method_7929(Lnet/minecraft/class_2053;)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_8170Lnet/minecraft/class_2107;method_8170(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_7927Lnet/minecraft/class_2050;method_7927(Lnet/minecraft/class_2051;)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_7942Lnet/minecraft/class_2050;method_7942(Lnet/minecraft/class_704;)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_7937Lnet/minecraft/class_2050;method_7937(Lnet/minecraft/class_2061;)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_7930Lnet/minecraft/class_2050;method_7930(Lnet/minecraft/class_2054;)Vnamed onClientStatusLnet/minecraft/network/listener/ServerPlayPacketListener;onClientStatus(Lnet/minecraft/network/packet/c2s/play/ClientStatusC2SPacket;)V
-
onGuiClose
- Specified by:
onGuiClosein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Lil;)Vintermediary method_7935Lnet/minecraft/class_2050;method_7935(Lnet/minecraft/class_2060;)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_7934Lnet/minecraft/class_2050;method_7934(Lnet/minecraft/class_2059;)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_7933Lnet/minecraft/class_2050;method_7933(Lnet/minecraft/class_2058;)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_7945Lnet/minecraft/class_2050;method_7945(Lnet/minecraft/class_2069;)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_7932Lnet/minecraft/class_2050;method_7932(Lnet/minecraft/class_2057;)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_7946Lnet/minecraft/class_2050;method_7946(Lnet/minecraft/class_2070;)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_7938Lnet/minecraft/class_2050;method_7938(Lnet/minecraft/class_2063;)Vnamed onKeepAliveLnet/minecraft/network/listener/ServerPlayPacketListener;onKeepAlive(Lnet/minecraft/network/packet/c2s/play/KeepAliveC2SPacket;)V
-
method_8169
private long method_8169()- Mappings:
Namespace Name Mixin selector official dLlm;d()Jintermediary method_8169Lnet/minecraft/class_2107;method_8169()Jnamed method_8169Lnet/minecraft/server/network/ServerPlayNetworkHandler;method_8169()J
-
onPlayerAbilities
- Specified by:
onPlayerAbilitiesin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLic;a(Liq;)Vintermediary method_7940Lnet/minecraft/class_2050;method_7940(Lnet/minecraft/class_2065;)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_7928Lnet/minecraft/class_2050;method_7928(Lnet/minecraft/class_2052;)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_7931Lnet/minecraft/class_2050;method_7931(Lnet/minecraft/class_2056;)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_7936Lnet/minecraft/class_2050;method_7936(Lnet/minecraft/class_663;)Vnamed onCustomPayloadLnet/minecraft/network/listener/ServerPlayPacketListener;onCustomPayload(Lnet/minecraft/network/packet/c2s/play/CustomPayloadC2SPacket;)V
-