Package net.minecraft.server.network
Class ServerQueryNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerQueryNetworkHandler
- All Implemented Interfaces:
PacketListener
,ServerCrashSafePacketListener
,ServerPacketListener
,ServerQueryPacketListener
,ServerQueryPingPacketListener
- Mappings:
Namespace Name named net/minecraft/server/network/ServerQueryNetworkHandler
intermediary net/minecraft/class_3251
official arx
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientConnection
private final ServerMetadata
private static final Text
private boolean
Fields inherited from interface net.minecraft.network.listener.ServerCrashSafePacketListener
LOGGER
-
Constructor Summary
ConstructorDescriptionServerQueryNetworkHandler
(ServerMetadata metadata, ClientConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
onDisconnected
(class_9812 class_9812) Called when the connection this listener listens to has disconnected.void
onQueryPing
(QueryPingC2SPacket packet) Handles a packet from client to query the "ping" (connection latency).void
onRequest
(QueryRequestC2SPacket packet) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, fillCrashReport, method_60881
Methods inherited from interface net.minecraft.network.listener.ServerCrashSafePacketListener
onPacketException
Methods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
Methods inherited from interface net.minecraft.network.listener.ServerQueryPacketListener
getPhase
-
Field Details
-
REQUEST_HANDLED
- Mappings:
Namespace Name Mixin selector named REQUEST_HANDLED
Lnet/minecraft/server/network/ServerQueryNetworkHandler;REQUEST_HANDLED:Lnet/minecraft/text/Text;
intermediary field_14179
Lnet/minecraft/class_3251;field_14179:Lnet/minecraft/class_2561;
official b
Larx;b:Lwy;
-
metadata
- Mappings:
Namespace Name Mixin selector named metadata
Lnet/minecraft/server/network/ServerQueryNetworkHandler;metadata:Lnet/minecraft/server/ServerMetadata;
intermediary field_42544
Lnet/minecraft/class_3251;field_42544:Lnet/minecraft/class_2926;
official c
Larx;c:Lajp;
-
connection
- Mappings:
Namespace Name Mixin selector named connection
Lnet/minecraft/server/network/ServerQueryNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
intermediary field_14178
Lnet/minecraft/class_3251;field_14178:Lnet/minecraft/class_2535;
official d
Larx;d:Lvs;
-
responseSent
private boolean responseSent- Mappings:
Namespace Name Mixin selector named responseSent
Lnet/minecraft/server/network/ServerQueryNetworkHandler;responseSent:Z
intermediary field_14177
Lnet/minecraft/class_3251;field_14177:Z
official e
Larx;e:Z
-
-
Constructor Details
-
ServerQueryNetworkHandler
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/network/ServerQueryNetworkHandler;<init>(Lnet/minecraft/server/ServerMetadata;Lnet/minecraft/network/ClientConnection;)V
intermediary <init>
Lnet/minecraft/class_3251;<init>(Lnet/minecraft/class_2926;Lnet/minecraft/class_2535;)V
official <init>
Larx;<init>(Lajp;Lvs;)V
-
-
Method Details
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnected
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/class_9812;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_9812;)V
official a
Lwe;a(Lvu;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpen
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named isConnectionOpen
Lnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
intermediary method_48106
Lnet/minecraft/class_2547;method_48106()Z
official c
Lwe;c()Z
-
onRequest
- Specified by:
onRequest
in interfaceServerQueryPacketListener
- Mappings:
Namespace Name Mixin selector named onRequest
Lnet/minecraft/network/listener/ServerQueryPacketListener;onRequest(Lnet/minecraft/network/packet/c2s/query/QueryRequestC2SPacket;)V
intermediary method_12698
Lnet/minecraft/class_2933;method_12698(Lnet/minecraft/class_2937;)V
official a
Lajq;a(Lajr;)V
-
onQueryPing
Handles a packet from client to query the "ping" (connection latency). This is different fromCommonPingS2CPacket
, which can be sent by the server to request acknowledgment.- Specified by:
onQueryPing
in interfaceServerQueryPingPacketListener
- Mappings:
Namespace Name Mixin selector named onQueryPing
Lnet/minecraft/network/listener/ServerQueryPingPacketListener;onQueryPing(Lnet/minecraft/network/packet/c2s/query/QueryPingC2SPacket;)V
intermediary method_12697
Lnet/minecraft/class_8740;method_12697(Lnet/minecraft/class_2935;)V
official a
Lajk;a(Lajl;)V
-