Package net.minecraft.server.network
Class ServerPlayNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerPlayNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerPlayPacketListener
- Mappings:
Namespace Name official mwintermediary net/minecraft/class_2107named net/minecraft/server/network/ServerPlayNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ClientConnectionprivate intprivate intprivate booleanprivate intprivate static Randomprivate booleanprivate longprivate longprivate intprivate static final Loggerprivate intprivate doubleprivate doubleprivate doubleprivate final MinecraftServerprivate IntObjectStorage -
Constructor Summary
ConstructorsConstructorDescriptionServerPlayNetworkHandler(MinecraftServer server, ClientConnection connection, ServerPlayerEntity player) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(String reason) private voidexecuteCommand(String string) voidvoidmethod_7455(NetworkState networkState, NetworkState networkState2) 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) voidvoidonSignUpdate(UpdateSignC2SPacket packet) voidvoidrequestTeleport(double x, double y, double z, float yaw, float pitch) voidsendPacket(Packet packet)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLmw;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;
-
field_8936
- Mappings:
Namespace Name Mixin selector official jLmw;j:Ljava/util/Random;intermediary field_8936Lnet/minecraft/class_2107;field_8936:Ljava/util/Random;named field_8936Lnet/minecraft/server/network/ServerPlayNetworkHandler;field_8936:Ljava/util/Random;
-
connection
- Mappings:
Namespace Name Mixin selector official aLmw;a:Lef;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 dLmw;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 bLmw;b:Lml;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 eLmw;e:Iintermediary field_8931Lnet/minecraft/class_2107;field_8931:Inamed lastTickMovePacketsCountLnet/minecraft/server/network/ServerPlayNetworkHandler;lastTickMovePacketsCount:I
-
field_8932
private int field_8932- Mappings:
Namespace Name Mixin selector official fLmw;f: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 gLmw;g: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 hLmw;h: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 iLmw;i: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 kLmw;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 lLmw;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 mLmw;m:Iintermediary field_8939Lnet/minecraft/class_2107;field_8939:Inamed creativeItemDropThresholdLnet/minecraft/server/network/ServerPlayNetworkHandler;creativeItemDropThreshold:I
-
transactions
- Mappings:
Namespace Name Mixin selector official nLmw;n:Lom;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 oLmw;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 pLmw;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 qLmw;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 rLmw;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>Lmw;<init>(Lnet/minecraft/server/MinecraftServer;Lef;Lml;)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
-
method_7454
public void method_7454()- Specified by:
method_7454in interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLer;a()Vintermediary method_7454Lnet/minecraft/class_701;method_7454()Vnamed method_7454Lnet/minecraft/network/listener/PacketListener;method_7454()V
-
getConnection
- Mappings:
Namespace Name Mixin selector official bLmw;b()Lef;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 cLmw;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 aLia;a(Lix;)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
-
onPlayerMove
- Specified by:
onPlayerMovein interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLia;a(Liq;)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 aLmw;a(DDDFF)Vintermediary method_8165Lnet/minecraft/class_2107;method_8165(DDDFF)Vnamed requestTeleportLnet/minecraft/server/network/ServerPlayNetworkHandler;requestTeleport(DDDFF)V
-
onPlayerAction
- Specified by:
onPlayerActionin interfaceServerPlayPacketListener- Mappings:
Namespace Name Mixin selector official aLia;a(Liv;)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 aLia;a(Ljb;)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
-
onDisconnected
- Specified by:
onDisconnectedin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLer;a(Lez;)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 aLmw;a(Lfj;)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 aLia;a(Liy;)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 aLia;a(Lid;)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 dLmw;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 aLia;a(Lib;)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 aLia;a(Liw;)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 aLia;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 aLia;a(Lie;)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 aLia;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 aLia;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 aLia;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 aLia;a(Liz;)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 aLia;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 aLia;a(Lja;)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 aLia;a(Lip;)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 dLmw;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 aLia;a(Liu;)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 aLia;a(Lic;)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 aLia;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 aLia;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
-
method_7455
- Specified by:
method_7455in interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLer;a(Lej;Lej;)Vintermediary method_7455Lnet/minecraft/class_701;method_7455(Lnet/minecraft/class_1962;Lnet/minecraft/class_1962;)Vnamed method_7455Lnet/minecraft/network/listener/PacketListener;method_7455(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/NetworkState;)V
-