Package net.minecraft.server.network
Class ServerQueryNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerQueryNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerPacketListener,ServerQueryPacketListener
- Mappings:
Namespace Name official aglintermediary net/minecraft/class_3251named net/minecraft/server/network/ServerQueryNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientConnectionprivate static final Textprivate booleanprivate final 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.listener.ServerPacketListener
shouldCrashOnException
-
Field Details
-
REQUEST_HANDLED
- Mappings:
Namespace Name Mixin selector official aLagl;a:Lrm;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 bLagl;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 cLagl;c:Lqv;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 dLagl;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>Lagl;<init>(Lnet/minecraft/server/MinecraftServer;Lqv;)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 aLra;a(Lrm;)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:
- Mappings:
Namespace Name Mixin selector official aLra;a()Lqv;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 aLzn;a(Lzp;)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 aLzn;a(Lzo;)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
-