类 ServerQueryNetworkHandler
- java.lang.Object
-
- net.minecraft.server.network.ServerQueryNetworkHandler
-
- 所有已实现的接口:
PacketListener,ServerQueryPacketListener
public class ServerQueryNetworkHandler extends Object implements ServerQueryPacketListener
- Mappings:
Namespace Name official acfintermediary net/minecraft/class_3251named net/minecraft/server/network/ServerQueryNetworkHandler
-
-
字段概要
字段 修饰符和类型 字段 说明 private ClientConnectionconnectionprivate static TextREQUEST_HANDLEDprivate booleanresponseSentprivate MinecraftServerserver
-
构造器概要
构造器 构造器 说明 ServerQueryNetworkHandler(MinecraftServer server, ClientConnection connection)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClientConnectiongetConnection()Returns 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)
-
-
-
字段详细资料
-
REQUEST_HANDLED
private static final Text REQUEST_HANDLED
- Mappings:
Namespace Name Mixin selector official aLacf;a:Lon;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
private final MinecraftServer server
- Mappings:
Namespace Name Mixin selector official bLacf;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
private final ClientConnection connection
- Mappings:
Namespace Name Mixin selector official cLacf;c:Lnz;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 dLacf;d:Zintermediary field_14177Lnet/minecraft/class_3251;field_14177:Znamed responseSentLnet/minecraft/server/network/ServerQueryNetworkHandler;responseSent:Z
-
-
构造器详细资料
-
ServerQueryNetworkHandler
public ServerQueryNetworkHandler(MinecraftServer server, ClientConnection connection)
- Mappings:
Namespace Name Mixin selector official <init>Lacf;<init>(Lnet/minecraft/server/MinecraftServer;Lnz;)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
-
-
方法详细资料
-
onDisconnected
public void onDisconnected(Text reason)
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- 指定者:
onDisconnected在接口中PacketListener- 参数:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLoe;a(Lon;)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
public ClientConnection getConnection()
Returns the connection this packet listener intends to listen to.- 指定者:
getConnection在接口中PacketListener- 另请参阅:
ClientConnection.getPacketListener()- Mappings:
Namespace Name Mixin selector official aLoe;a()Lnz;intermediary method_2872Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;named getConnectionLnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-
onRequest
public void onRequest(QueryRequestC2SPacket packet)
- 指定者:
onRequest在接口中ServerQueryPacketListener- Mappings:
Namespace Name Mixin selector official aLvu;a(Lvw;)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
public void onPing(QueryPingC2SPacket packet)
- 指定者:
onPing在接口中ServerQueryPacketListener- Mappings:
Namespace Name Mixin selector official aLvu;a(Lvv;)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
-
-