Package net.minecraft.server.network
Class ServerQueryNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerQueryNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerPacketListener,ServerQueryPacketListener
- Mappings:
Namespace Name intermediary net/minecraft/class_3251official ajcnamed net/minecraft/server/network/ServerQueryNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientConnectionprivate final ServerMetadataprivate static final Textprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionServerQueryNetworkHandler(ServerMetadata metadata, 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 intermediary field_14179Lnet/minecraft/class_3251;field_14179:Lnet/minecraft/class_2561;official aLajc;a:Lsw;named REQUEST_HANDLEDLnet/minecraft/server/network/ServerQueryNetworkHandler;REQUEST_HANDLED:Lnet/minecraft/text/Text;
-
metadata
- Mappings:
Namespace Name Mixin selector intermediary field_42544Lnet/minecraft/class_3251;field_42544:Lnet/minecraft/class_2926;official bLajc;b:Labt;named metadataLnet/minecraft/server/network/ServerQueryNetworkHandler;metadata:Lnet/minecraft/server/ServerMetadata;
-
connection
- Mappings:
Namespace Name Mixin selector intermediary field_14178Lnet/minecraft/class_3251;field_14178:Lnet/minecraft/class_2535;official cLajc;c:Lsd;named connectionLnet/minecraft/server/network/ServerQueryNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
responseSent
private boolean responseSent- Mappings:
Namespace Name Mixin selector intermediary field_14177Lnet/minecraft/class_3251;field_14177:Zofficial dLajc;d:Znamed responseSentLnet/minecraft/server/network/ServerQueryNetworkHandler;responseSent:Z
-
-
Constructor Details
-
ServerQueryNetworkHandler
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_3251;<init>(Lnet/minecraft/class_2926;Lnet/minecraft/class_2535;)Vofficial <init>Lajc;<init>(Labt;Lsd;)Vnamed <init>Lnet/minecraft/server/network/ServerQueryNetworkHandler;<init>(Lnet/minecraft/server/ServerMetadata;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 intermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vofficial aLsk;a(Lsw;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpenin interfacePacketListener- Mappings:
Namespace Name Mixin selector intermediary method_48106Lnet/minecraft/class_2547;method_48106()Zofficial aLsk;a()Znamed isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
-
onRequest
- Specified by:
onRequestin interfaceServerQueryPacketListener- Mappings:
Namespace Name Mixin selector intermediary method_12698Lnet/minecraft/class_2933;method_12698(Lnet/minecraft/class_2937;)Vofficial aLabu;a(Labw;)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 intermediary method_12697Lnet/minecraft/class_2933;method_12697(Lnet/minecraft/class_2935;)Vofficial aLabu;a(Labv;)Vnamed onPingLnet/minecraft/network/listener/ServerQueryPacketListener;onPing(Lnet/minecraft/network/packet/c2s/query/QueryPingC2SPacket;)V
-