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 aitintermediary 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 TypeMethodDescriptionbooleanvoidonDisconnected(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 aLait;a:Lsu;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 bLait;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 cLait;c:Lsb;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 dLait;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>Lait;<init>(Lnet/minecraft/server/MinecraftServer;Lsb;)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 aLsi;a(Lsu;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
method_48106
public boolean method_48106()- Specified by:
method_48106in interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLsi;a()Zintermediary method_48106Lnet/minecraft/class_2547;method_48106()Znamed method_48106Lnet/minecraft/network/listener/PacketListener;method_48106()Z
-
onRequest
- Specified by:
onRequestin interfaceServerQueryPacketListener- Mappings:
Namespace Name Mixin selector official aLabq;a(Labs;)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 aLabq;a(Labr;)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
-