Package net.minecraft.server.network
Class ServerQueryNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerQueryNetworkHandler
- All Implemented Interfaces:
PacketListener
,ServerQueryPacketListener
- Mappings:
Namespace Name official acn
intermediary net/minecraft/class_3251
named net/minecraft/server/network/ServerQueryNetworkHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientConnection
private static Text
private boolean
private MinecraftServer
-
Constructor Summary
ConstructorDescriptionServerQueryNetworkHandler(MinecraftServer server, ClientConnection connection)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the connection this packet listener intends to listen to.void
onDisconnected(Text reason)
Called when the connection this listener listens to has disconnected.void
onPing(QueryPingC2SPacket packet)
void
onRequest(QueryRequestC2SPacket packet)
-
Field Details
-
REQUEST_HANDLED
- Mappings:
Namespace Name Mixin selector official a
Lacn;a:Los;
intermediary field_14179
Lnet/minecraft/class_3251;field_14179:Lnet/minecraft/class_2561;
named REQUEST_HANDLED
Lnet/minecraft/server/network/ServerQueryNetworkHandler;REQUEST_HANDLED:Lnet/minecraft/text/Text;
-
server
- Mappings:
Namespace Name Mixin selector official b
Lacn;b:Lnet/minecraft/server/MinecraftServer;
intermediary field_14180
Lnet/minecraft/class_3251;field_14180:Lnet/minecraft/server/MinecraftServer;
named server
Lnet/minecraft/server/network/ServerQueryNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector official c
Lacn;c:Loe;
intermediary field_14178
Lnet/minecraft/class_3251;field_14178:Lnet/minecraft/class_2535;
named connection
Lnet/minecraft/server/network/ServerQueryNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
responseSent
private boolean responseSent- Mappings:
Namespace Name Mixin selector official d
Lacn;d:Z
intermediary field_14177
Lnet/minecraft/class_3251;field_14177:Z
named responseSent
Lnet/minecraft/server/network/ServerQueryNetworkHandler;responseSent:Z
-
-
Constructor Details
-
ServerQueryNetworkHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lacn;<init>(Lnet/minecraft/server/MinecraftServer;Loe;)V
intermediary <init>
Lnet/minecraft/class_3251;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)V
named <init>
Lnet/minecraft/server/network/ServerQueryNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)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
- Parameters:
reason
- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official a
Loj;a(Los;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnection
Returns the connection this packet listener intends to listen to.- Specified by:
getConnection
in interfacePacketListener
- See Also:
ClientConnection.getPacketListener()
- Mappings:
Namespace Name Mixin selector official a
Loj;a()Loe;
intermediary method_2872
Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;
named getConnection
Lnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-
onRequest
- Specified by:
onRequest
in interfaceServerQueryPacketListener
- Mappings:
Namespace Name Mixin selector official a
Lwb;a(Lwd;)V
intermediary method_12698
Lnet/minecraft/class_2933;method_12698(Lnet/minecraft/class_2937;)V
named onRequest
Lnet/minecraft/network/listener/ServerQueryPacketListener;onRequest(Lnet/minecraft/network/packet/c2s/query/QueryRequestC2SPacket;)V
-
onPing
- Specified by:
onPing
in interfaceServerQueryPacketListener
- Mappings:
Namespace Name Mixin selector official a
Lwb;a(Lwc;)V
intermediary method_12697
Lnet/minecraft/class_2933;method_12697(Lnet/minecraft/class_2935;)V
named onPing
Lnet/minecraft/network/listener/ServerQueryPacketListener;onPing(Lnet/minecraft/network/packet/c2s/query/QueryPingC2SPacket;)V
-