Package net.minecraft.server.network
Class ServerQueryNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerQueryNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerQueryPacketListener
- Mappings:
Namespace Name official acnintermediary net/minecraft/class_3251named net/minecraft/server/network/ServerQueryNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClientConnectionprivate static Textprivate booleanprivate MinecraftServer -
Constructor Summary
ConstructorsConstructorDescriptionServerQueryNetworkHandler(MinecraftServer server, ClientConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionReturns the connection this packet listener intends to listen to.voidonDisconnected(Text reason)Called when the connection this listener listens to has disconnected.voidonPing(QueryPingC2SPacket packet)voidonRequest(QueryRequestC2SPacket packet)
-
Field Details
-
REQUEST_HANDLED
- Mappings:
Namespace Name Mixin selector official aLacn;a:Los;intermediary field_14179Lnet/minecraft/class_3251;field_14179:Lnet/minecraft/class_2561;named REQUEST_HANDLEDLnet/minecraft/server/network/ServerQueryNetworkHandler;REQUEST_HANDLED:Lnet/minecraft/text/Text;
-
server
- Mappings:
Namespace Name Mixin selector official bLacn;b:Lnet/minecraft/server/MinecraftServer;intermediary field_14180Lnet/minecraft/class_3251;field_14180:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/network/ServerQueryNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector official cLacn;c:Loe;intermediary field_14178Lnet/minecraft/class_3251;field_14178:Lnet/minecraft/class_2535;named connectionLnet/minecraft/server/network/ServerQueryNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
responseSent
private boolean responseSent- Mappings:
Namespace Name Mixin selector official dLacn;d:Zintermediary field_14177Lnet/minecraft/class_3251;field_14177:Znamed responseSentLnet/minecraft/server/network/ServerQueryNetworkHandler;responseSent:Z
-
-
Constructor Details
-
ServerQueryNetworkHandler
- Mappings:
Namespace Name Mixin selector official <init>Lacn;<init>(Lnet/minecraft/server/MinecraftServer;Loe;)Vintermediary <init>Lnet/minecraft/class_3251;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)Vnamed <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:
onDisconnectedin interfacePacketListener- Parameters:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLoj;a(Los;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnection
Returns the connection this packet listener intends to listen to.- Specified by:
getConnectionin interfacePacketListener- See Also:
ClientConnection.getPacketListener()- Mappings:
Namespace Name Mixin selector official aLoj;a()Loe;intermediary method_2872Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;named getConnectionLnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-
onRequest
- Specified by:
onRequestin interfaceServerQueryPacketListener- Mappings:
Namespace Name Mixin selector official aLwb;a(Lwd;)Vintermediary method_12698Lnet/minecraft/class_2933;method_12698(Lnet/minecraft/class_2937;)Vnamed onRequestLnet/minecraft/network/listener/ServerQueryPacketListener;onRequest(Lnet/minecraft/network/packet/c2s/query/QueryRequestC2SPacket;)V
-
onPing
- Specified by:
onPingin interfaceServerQueryPacketListener- Mappings:
Namespace Name Mixin selector official aLwb;a(Lwc;)Vintermediary method_12697Lnet/minecraft/class_2933;method_12697(Lnet/minecraft/class_2935;)Vnamed onPingLnet/minecraft/network/listener/ServerQueryPacketListener;onPing(Lnet/minecraft/network/packet/c2s/query/QueryPingC2SPacket;)V
-