Package net.minecraft.server.rcon
Class QueryResponseHandler
java.lang.Object
net.minecraft.server.rcon.RconBase
net.minecraft.server.rcon.QueryResponseHandler
- All Implemented Interfaces:
Runnable
- Mappings:
Namespace Name official aex
intermediary net/minecraft/class_3364
named net/minecraft/server/rcon/QueryResponseHandler
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static long
private DataStreamHelper
private static Logger
private static long
private static String
private static String
private String
private String
private long
private long
private String
private int
private String
private byte[]
private int
private Map<SocketAddress,QueryResponseHandler.Query>
private int
private DedicatedServer
private DatagramSocket
Fields inherited from class net.minecraft.server.rcon.RconBase
description, running, thread
-
Constructor Summary
ModifierConstructorDescriptionprivate
QueryResponseHandler(DedicatedServer server, int queryPort)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
cleanUp()
static @Nullable QueryResponseHandler
create(DedicatedServer server)
private void
createQuery(DatagramPacket packet)
private byte[]
createRulesReply(DatagramPacket packet)
private byte[]
getMessageBytes(SocketAddress address)
private boolean
handle(DatagramPacket packet)
private void
private boolean
private Boolean
isValidQuery(DatagramPacket packet)
private void
reply(byte[] buf, DatagramPacket packet)
void
run()
boolean
start()
-
Field Details
-
field_23963
- Mappings:
Namespace Name Mixin selector official d
Laex;d:Lorg/apache/logging/log4j/Logger;
intermediary field_23963
Lnet/minecraft/class_3364;field_23963:Lorg/apache/logging/log4j/Logger;
named field_23963
Lnet/minecraft/server/rcon/QueryResponseHandler;field_23963:Lorg/apache/logging/log4j/Logger;
-
GAME_TYPE
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Laex;e:Ljava/lang/String;
intermediary field_29795
Lnet/minecraft/class_3364;field_29795:Ljava/lang/String;
named GAME_TYPE
Lnet/minecraft/server/rcon/QueryResponseHandler;GAME_TYPE:Ljava/lang/String;
-
GAME_ID
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Laex;f:Ljava/lang/String;
intermediary field_29796
Lnet/minecraft/class_3364;field_29796:Ljava/lang/String;
named GAME_ID
Lnet/minecraft/server/rcon/QueryResponseHandler;GAME_ID:Ljava/lang/String;
-
CLEAN_UP_THRESHOLD
private static final long CLEAN_UP_THRESHOLD- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official g
Laex;g:J
intermediary field_29797
Lnet/minecraft/class_3364;field_29797:J
named CLEAN_UP_THRESHOLD
Lnet/minecraft/server/rcon/QueryResponseHandler;CLEAN_UP_THRESHOLD:J
-
field_29798
private static final long field_29798- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official h
Laex;h:J
intermediary field_29798
Lnet/minecraft/class_3364;field_29798:J
named field_29798
Lnet/minecraft/server/rcon/QueryResponseHandler;field_29798:J
-
lastQueryTime
private long lastQueryTime- Mappings:
Namespace Name Mixin selector official i
Laex;i:J
intermediary field_14443
Lnet/minecraft/class_3364;field_14443:J
named lastQueryTime
Lnet/minecraft/server/rcon/QueryResponseHandler;lastQueryTime:J
-
queryPort
private final int queryPort- Mappings:
Namespace Name Mixin selector official j
Laex;j:I
intermediary field_14442
Lnet/minecraft/class_3364;field_14442:I
named queryPort
Lnet/minecraft/server/rcon/QueryResponseHandler;queryPort:I
-
port
private final int port- Mappings:
Namespace Name Mixin selector official k
Laex;k:I
intermediary field_14457
Lnet/minecraft/class_3364;field_14457:I
named port
Lnet/minecraft/server/rcon/QueryResponseHandler;port:I
-
maxPlayerCount
private final int maxPlayerCount- Mappings:
Namespace Name Mixin selector official l
Laex;l:I
intermediary field_14456
Lnet/minecraft/class_3364;field_14456:I
named maxPlayerCount
Lnet/minecraft/server/rcon/QueryResponseHandler;maxPlayerCount:I
-
motd
- Mappings:
Namespace Name Mixin selector official m
Laex;m:Ljava/lang/String;
intermediary field_14445
Lnet/minecraft/class_3364;field_14445:Ljava/lang/String;
named motd
Lnet/minecraft/server/rcon/QueryResponseHandler;motd:Ljava/lang/String;
-
levelName
- Mappings:
Namespace Name Mixin selector official n
Laex;n:Ljava/lang/String;
intermediary field_14447
Lnet/minecraft/class_3364;field_14447:Ljava/lang/String;
named levelName
Lnet/minecraft/server/rcon/QueryResponseHandler;levelName:Ljava/lang/String;
-
socket
- Mappings:
Namespace Name Mixin selector official o
Laex;o:Ljava/net/DatagramSocket;
intermediary field_14449
Lnet/minecraft/class_3364;field_14449:Ljava/net/DatagramSocket;
named socket
Lnet/minecraft/server/rcon/QueryResponseHandler;socket:Ljava/net/DatagramSocket;
-
packetBuffer
private final byte[] packetBuffer- Mappings:
Namespace Name Mixin selector official p
Laex;p:[B
intermediary field_14452
Lnet/minecraft/class_3364;field_14452:[B
named packetBuffer
Lnet/minecraft/server/rcon/QueryResponseHandler;packetBuffer:[B
-
ip
- Mappings:
Namespace Name Mixin selector official q
Laex;q:Ljava/lang/String;
intermediary field_14444
Lnet/minecraft/class_3364;field_14444:Ljava/lang/String;
named ip
Lnet/minecraft/server/rcon/QueryResponseHandler;ip:Ljava/lang/String;
-
hostname
- Mappings:
Namespace Name Mixin selector official r
Laex;r:Ljava/lang/String;
intermediary field_14454
Lnet/minecraft/class_3364;field_14454:Ljava/lang/String;
named hostname
Lnet/minecraft/server/rcon/QueryResponseHandler;hostname:Ljava/lang/String;
-
queries
- Mappings:
Namespace Name Mixin selector official s
Laex;s:Ljava/util/Map;
intermediary field_14453
Lnet/minecraft/class_3364;field_14453:Ljava/util/Map;
named queries
Lnet/minecraft/server/rcon/QueryResponseHandler;queries:Ljava/util/Map;
-
data
- Mappings:
Namespace Name Mixin selector official t
Laex;t:Laes;
intermediary field_14446
Lnet/minecraft/class_3364;field_14446:Lnet/minecraft/class_3345;
named data
Lnet/minecraft/server/rcon/QueryResponseHandler;data:Lnet/minecraft/server/rcon/DataStreamHelper;
-
lastResponseTime
private long lastResponseTime- Mappings:
Namespace Name Mixin selector official u
Laex;u:J
intermediary field_14450
Lnet/minecraft/class_3364;field_14450:J
named lastResponseTime
Lnet/minecraft/server/rcon/QueryResponseHandler;lastResponseTime:J
-
server
- Mappings:
Namespace Name Mixin selector official v
Laex;v:Lxj;
intermediary field_23964
Lnet/minecraft/class_3364;field_23964:Lnet/minecraft/class_2994;
named server
Lnet/minecraft/server/rcon/QueryResponseHandler;server:Lnet/minecraft/server/dedicated/DedicatedServer;
-
-
Constructor Details
-
QueryResponseHandler
- Mappings:
Namespace Name Mixin selector official <init>
Laex;<init>(Lxj;I)V
intermediary <init>
Lnet/minecraft/class_3364;<init>(Lnet/minecraft/class_2994;I)V
named <init>
Lnet/minecraft/server/rcon/QueryResponseHandler;<init>(Lnet/minecraft/server/dedicated/DedicatedServer;I)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Laex;a(Lxj;)Laex;
intermediary method_30737
Lnet/minecraft/class_3364;method_30737(Lnet/minecraft/class_2994;)Lnet/minecraft/class_3364;
named create
Lnet/minecraft/server/rcon/QueryResponseHandler;create(Lnet/minecraft/server/dedicated/DedicatedServer;)Lnet/minecraft/server/rcon/QueryResponseHandler;
-
reply
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laex;a([BLjava/net/DatagramPacket;)V
intermediary method_14751
Lnet/minecraft/class_3364;method_14751([BLjava/net/DatagramPacket;)V
named reply
Lnet/minecraft/server/rcon/QueryResponseHandler;reply([BLjava/net/DatagramPacket;)V
-
handle
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laex;a(Ljava/net/DatagramPacket;)Z
intermediary method_14750
Lnet/minecraft/class_3364;method_14750(Ljava/net/DatagramPacket;)Z
named handle
Lnet/minecraft/server/rcon/QueryResponseHandler;handle(Ljava/net/DatagramPacket;)Z
-
createRulesReply
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Laex;b(Ljava/net/DatagramPacket;)[B
intermediary method_14747
Lnet/minecraft/class_3364;method_14747(Ljava/net/DatagramPacket;)[B
named createRulesReply
Lnet/minecraft/server/rcon/QueryResponseHandler;createRulesReply(Ljava/net/DatagramPacket;)[B
-
getMessageBytes
- Mappings:
Namespace Name Mixin selector official a
Laex;a(Ljava/net/SocketAddress;)[B
intermediary method_14748
Lnet/minecraft/class_3364;method_14748(Ljava/net/SocketAddress;)[B
named getMessageBytes
Lnet/minecraft/server/rcon/QueryResponseHandler;getMessageBytes(Ljava/net/SocketAddress;)[B
-
isValidQuery
- Mappings:
Namespace Name Mixin selector official c
Laex;c(Ljava/net/DatagramPacket;)Ljava/lang/Boolean;
intermediary method_14753
Lnet/minecraft/class_3364;method_14753(Ljava/net/DatagramPacket;)Ljava/lang/Boolean;
named isValidQuery
Lnet/minecraft/server/rcon/QueryResponseHandler;isValidQuery(Ljava/net/DatagramPacket;)Ljava/lang/Boolean;
-
createQuery
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official d
Laex;d(Ljava/net/DatagramPacket;)V
intermediary method_14749
Lnet/minecraft/class_3364;method_14749(Ljava/net/DatagramPacket;)V
named createQuery
Lnet/minecraft/server/rcon/QueryResponseHandler;createQuery(Ljava/net/DatagramPacket;)V
-
cleanUp
private void cleanUp()- Mappings:
Namespace Name Mixin selector official d
Laex;d()V
intermediary method_14746
Lnet/minecraft/class_3364;method_14746()V
named cleanUp
Lnet/minecraft/server/rcon/QueryResponseHandler;cleanUp()V
-
run
public void run() -
start
public boolean start() -
handleIoException
- Mappings:
Namespace Name Mixin selector official a
Laex;a(Ljava/lang/Exception;)V
intermediary method_14752
Lnet/minecraft/class_3364;method_14752(Ljava/lang/Exception;)V
named handleIoException
Lnet/minecraft/server/rcon/QueryResponseHandler;handleIoException(Ljava/lang/Exception;)V
-
initialize
private boolean initialize()- Mappings:
Namespace Name Mixin selector official e
Laex;e()Z
intermediary method_14754
Lnet/minecraft/class_3364;method_14754()Z
named initialize
Lnet/minecraft/server/rcon/QueryResponseHandler;initialize()Z
-