Class QueryResponseHandler

java.lang.Object
net.minecraft.server.rcon.RconBase
net.minecraft.server.rcon.QueryResponseHandler
All Implemented Interfaces:
Runnable

public class QueryResponseHandler extends RconBase
Mappings:
Namespace Name
named net/minecraft/server/rcon/QueryResponseHandler
intermediary net/minecraft/class_3364
official avh
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/rcon/QueryResponseHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_23963 Lnet/minecraft/class_3364;field_23963:Lorg/slf4j/Logger;
      official d Lavh;d:Lorg/slf4j/Logger;
    • GAME_TYPE

      private static final String GAME_TYPE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GAME_TYPE Lnet/minecraft/server/rcon/QueryResponseHandler;GAME_TYPE:Ljava/lang/String;
      intermediary field_29795 Lnet/minecraft/class_3364;field_29795:Ljava/lang/String;
      official e Lavh;e:Ljava/lang/String;
    • GAME_ID

      private static final String GAME_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named GAME_ID Lnet/minecraft/server/rcon/QueryResponseHandler;GAME_ID:Ljava/lang/String;
      intermediary field_29796 Lnet/minecraft/class_3364;field_29796:Ljava/lang/String;
      official f Lavh;f:Ljava/lang/String;
    • CLEAN_UP_THRESHOLD

      private static final long CLEAN_UP_THRESHOLD
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CLEAN_UP_THRESHOLD Lnet/minecraft/server/rcon/QueryResponseHandler;CLEAN_UP_THRESHOLD:J
      intermediary field_29797 Lnet/minecraft/class_3364;field_29797:J
      official g Lavh;g:J
    • field_29798

      private static final long field_29798
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_29798 Lnet/minecraft/server/rcon/QueryResponseHandler;field_29798:J
      intermediary field_29798 Lnet/minecraft/class_3364;field_29798:J
      official h Lavh;h:J
    • lastQueryTime

      private long lastQueryTime
      Mappings:
      Namespace Name Mixin selector
      named lastQueryTime Lnet/minecraft/server/rcon/QueryResponseHandler;lastQueryTime:J
      intermediary field_14443 Lnet/minecraft/class_3364;field_14443:J
      official i Lavh;i:J
    • queryPort

      private final int queryPort
      Mappings:
      Namespace Name Mixin selector
      named queryPort Lnet/minecraft/server/rcon/QueryResponseHandler;queryPort:I
      intermediary field_14442 Lnet/minecraft/class_3364;field_14442:I
      official j Lavh;j:I
    • port

      private final int port
      Mappings:
      Namespace Name Mixin selector
      named port Lnet/minecraft/server/rcon/QueryResponseHandler;port:I
      intermediary field_14457 Lnet/minecraft/class_3364;field_14457:I
      official k Lavh;k:I
    • maxPlayerCount

      private final int maxPlayerCount
      Mappings:
      Namespace Name Mixin selector
      named maxPlayerCount Lnet/minecraft/server/rcon/QueryResponseHandler;maxPlayerCount:I
      intermediary field_14456 Lnet/minecraft/class_3364;field_14456:I
      official l Lavh;l:I
    • motd

      private final String motd
      Mappings:
      Namespace Name Mixin selector
      named motd Lnet/minecraft/server/rcon/QueryResponseHandler;motd:Ljava/lang/String;
      intermediary field_14445 Lnet/minecraft/class_3364;field_14445:Ljava/lang/String;
      official m Lavh;m:Ljava/lang/String;
    • levelName

      private final String levelName
      Mappings:
      Namespace Name Mixin selector
      named levelName Lnet/minecraft/server/rcon/QueryResponseHandler;levelName:Ljava/lang/String;
      intermediary field_14447 Lnet/minecraft/class_3364;field_14447:Ljava/lang/String;
      official n Lavh;n:Ljava/lang/String;
    • socket

      private DatagramSocket socket
      Mappings:
      Namespace Name Mixin selector
      named socket Lnet/minecraft/server/rcon/QueryResponseHandler;socket:Ljava/net/DatagramSocket;
      intermediary field_14449 Lnet/minecraft/class_3364;field_14449:Ljava/net/DatagramSocket;
      official o Lavh;o:Ljava/net/DatagramSocket;
    • packetBuffer

      private final byte[] packetBuffer
      Mappings:
      Namespace Name Mixin selector
      named packetBuffer Lnet/minecraft/server/rcon/QueryResponseHandler;packetBuffer:[B
      intermediary field_14452 Lnet/minecraft/class_3364;field_14452:[B
      official p Lavh;p:[B
    • ip

      private String ip
      Mappings:
      Namespace Name Mixin selector
      named ip Lnet/minecraft/server/rcon/QueryResponseHandler;ip:Ljava/lang/String;
      intermediary field_14444 Lnet/minecraft/class_3364;field_14444:Ljava/lang/String;
      official q Lavh;q:Ljava/lang/String;
    • hostname

      private String hostname
      Mappings:
      Namespace Name Mixin selector
      named hostname Lnet/minecraft/server/rcon/QueryResponseHandler;hostname:Ljava/lang/String;
      intermediary field_14454 Lnet/minecraft/class_3364;field_14454:Ljava/lang/String;
      official r Lavh;r:Ljava/lang/String;
    • queries

      Mappings:
      Namespace Name Mixin selector
      named queries Lnet/minecraft/server/rcon/QueryResponseHandler;queries:Ljava/util/Map;
      intermediary field_14453 Lnet/minecraft/class_3364;field_14453:Ljava/util/Map;
      official s Lavh;s:Ljava/util/Map;
    • data

      private final DataStreamHelper data
      Mappings:
      Namespace Name Mixin selector
      named data Lnet/minecraft/server/rcon/QueryResponseHandler;data:Lnet/minecraft/server/rcon/DataStreamHelper;
      intermediary field_14446 Lnet/minecraft/class_3364;field_14446:Lnet/minecraft/class_3345;
      official t Lavh;t:Lavc;
    • lastResponseTime

      private long lastResponseTime
      Mappings:
      Namespace Name Mixin selector
      named lastResponseTime Lnet/minecraft/server/rcon/QueryResponseHandler;lastResponseTime:J
      intermediary field_14450 Lnet/minecraft/class_3364;field_14450:J
      official u Lavh;u:J
    • server

      private final DedicatedServer server
      Mappings:
      Namespace Name Mixin selector
      named server Lnet/minecraft/server/rcon/QueryResponseHandler;server:Lnet/minecraft/server/dedicated/DedicatedServer;
      intermediary field_23964 Lnet/minecraft/class_3364;field_23964:Lnet/minecraft/class_2994;
      official v Lavh;v:Lalh;
  • Constructor Details

    • QueryResponseHandler

      private QueryResponseHandler(DedicatedServer server, int queryPort)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/rcon/QueryResponseHandler;<init>(Lnet/minecraft/server/dedicated/DedicatedServer;I)V
      intermediary <init> Lnet/minecraft/class_3364;<init>(Lnet/minecraft/class_2994;I)V
      official <init> Lavh;<init>(Lalh;I)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/server/rcon/QueryResponseHandler;create(Lnet/minecraft/server/dedicated/DedicatedServer;)Lnet/minecraft/server/rcon/QueryResponseHandler;
      intermediary method_30737 Lnet/minecraft/class_3364;method_30737(Lnet/minecraft/class_2994;)Lnet/minecraft/class_3364;
      official a Lavh;a(Lalh;)Lavh;
    • reply

      private void reply(byte[] buf, DatagramPacket packet) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named reply Lnet/minecraft/server/rcon/QueryResponseHandler;reply([BLjava/net/DatagramPacket;)V
      intermediary method_14751 Lnet/minecraft/class_3364;method_14751([BLjava/net/DatagramPacket;)V
      official a Lavh;a([BLjava/net/DatagramPacket;)V
    • handle

      private boolean handle(DatagramPacket packet) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named handle Lnet/minecraft/server/rcon/QueryResponseHandler;handle(Ljava/net/DatagramPacket;)Z
      intermediary method_14750 Lnet/minecraft/class_3364;method_14750(Ljava/net/DatagramPacket;)Z
      official a Lavh;a(Ljava/net/DatagramPacket;)Z
    • createRulesReply

      private byte[] createRulesReply(DatagramPacket packet) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named createRulesReply Lnet/minecraft/server/rcon/QueryResponseHandler;createRulesReply(Ljava/net/DatagramPacket;)[B
      intermediary method_14747 Lnet/minecraft/class_3364;method_14747(Ljava/net/DatagramPacket;)[B
      official b Lavh;b(Ljava/net/DatagramPacket;)[B
    • getMessageBytes

      private byte[] getMessageBytes(SocketAddress address)
      Mappings:
      Namespace Name Mixin selector
      named getMessageBytes Lnet/minecraft/server/rcon/QueryResponseHandler;getMessageBytes(Ljava/net/SocketAddress;)[B
      intermediary method_14748 Lnet/minecraft/class_3364;method_14748(Ljava/net/SocketAddress;)[B
      official a Lavh;a(Ljava/net/SocketAddress;)[B
    • isValidQuery

      private Boolean isValidQuery(DatagramPacket packet)
      Mappings:
      Namespace Name Mixin selector
      named isValidQuery Lnet/minecraft/server/rcon/QueryResponseHandler;isValidQuery(Ljava/net/DatagramPacket;)Ljava/lang/Boolean;
      intermediary method_14753 Lnet/minecraft/class_3364;method_14753(Ljava/net/DatagramPacket;)Ljava/lang/Boolean;
      official c Lavh;c(Ljava/net/DatagramPacket;)Ljava/lang/Boolean;
    • createQuery

      private void createQuery(DatagramPacket packet) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named createQuery Lnet/minecraft/server/rcon/QueryResponseHandler;createQuery(Ljava/net/DatagramPacket;)V
      intermediary method_14749 Lnet/minecraft/class_3364;method_14749(Ljava/net/DatagramPacket;)V
      official d Lavh;d(Ljava/net/DatagramPacket;)V
    • cleanUp

      private void cleanUp()
      Mappings:
      Namespace Name Mixin selector
      named cleanUp Lnet/minecraft/server/rcon/QueryResponseHandler;cleanUp()V
      intermediary method_14746 Lnet/minecraft/class_3364;method_14746()V
      official d Lavh;d()V
    • run

      public void run()
    • start

      public boolean start()
      Overrides:
      start in class RconBase
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/server/rcon/RconBase;start()Z
      intermediary method_14728 Lnet/minecraft/class_3359;method_14728()Z
      official a Lavg;a()Z
    • handleIoException

      private void handleIoException(Exception e)
      Mappings:
      Namespace Name Mixin selector
      named handleIoException Lnet/minecraft/server/rcon/QueryResponseHandler;handleIoException(Ljava/lang/Exception;)V
      intermediary method_14752 Lnet/minecraft/class_3364;method_14752(Ljava/lang/Exception;)V
      official a Lavh;a(Ljava/lang/Exception;)V
    • initialize

      private boolean initialize()
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/server/rcon/QueryResponseHandler;initialize()Z
      intermediary method_14754 Lnet/minecraft/class_3364;method_14754()Z
      official e Lavh;e()Z