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
official adz
intermediary net/minecraft/class_3364
named net/minecraft/server/rcon/QueryResponseHandler
  • Field Details

    • field_23963

      private static final Logger field_23963
      Mappings:
      Namespace Name Mixin selector
      official d Ladz;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;
    • lastQueryTime

      private long lastQueryTime
      Mappings:
      Namespace Name Mixin selector
      official e Ladz;e: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 f Ladz;f: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 g Ladz;g: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 h Ladz;h:I
      intermediary field_14456 Lnet/minecraft/class_3364;field_14456:I
      named maxPlayerCount Lnet/minecraft/server/rcon/QueryResponseHandler;maxPlayerCount:I
    • motd

      private final String motd
      Mappings:
      Namespace Name Mixin selector
      official i Ladz;i: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

      private final String levelName
      Mappings:
      Namespace Name Mixin selector
      official j Ladz;j: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

      private DatagramSocket socket
      Mappings:
      Namespace Name Mixin selector
      official k Ladz;k: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 l Ladz;l:[B
      intermediary field_14452 Lnet/minecraft/class_3364;field_14452:[B
      named packetBuffer Lnet/minecraft/server/rcon/QueryResponseHandler;packetBuffer:[B
    • ip

      private String ip
      Mappings:
      Namespace Name Mixin selector
      official m Ladz;m: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

      private String hostname
      Mappings:
      Namespace Name Mixin selector
      official n Ladz;n: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

      private final Map<SocketAddress,​QueryResponseHandler.Query> queries
      Mappings:
      Namespace Name Mixin selector
      official o Ladz;o: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

      private final DataStreamHelper data
      Mappings:
      Namespace Name Mixin selector
      official p Ladz;p:Ladu;
      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 q Ladz;q:J
      intermediary field_14450 Lnet/minecraft/class_3364;field_14450:J
      named lastResponseTime Lnet/minecraft/server/rcon/QueryResponseHandler;lastResponseTime:J
    • field_23964

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

    • QueryResponseHandler

      private QueryResponseHandler​(DedicatedServer server, int queryPort)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladz;<init>(Lwo;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

      @Nullable public static QueryResponseHandler create​(DedicatedServer server)
      Mappings:
      Namespace Name Mixin selector
      official a Ladz;a(Lwo;)Ladz;
      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

      private void reply​(byte[] buf, DatagramPacket datagramPacket) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ladz;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

      private boolean handle​(DatagramPacket packet) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ladz;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

      private byte[] createRulesReply​(DatagramPacket packet) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Ladz;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

      private byte[] getMessageBytes​(SocketAddress socketAddress)
      Mappings:
      Namespace Name Mixin selector
      official a Ladz;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

      private Boolean isValidQuery​(DatagramPacket datagramPacket)
      Mappings:
      Namespace Name Mixin selector
      official c Ladz;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

      private void createQuery​(DatagramPacket datagramPacket) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official d Ladz;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 Ladz;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()
      Mappings:
      Namespace Name Mixin selector
      official run Ladz;run()V
      intermediary run Lnet/minecraft/class_3364;run()V
      named run Lnet/minecraft/server/rcon/QueryResponseHandler;run()V
    • start

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

      private void handleIoException​(Exception e)
      Mappings:
      Namespace Name Mixin selector
      official a Ladz;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 Ladz;e()Z
      intermediary method_14754 Lnet/minecraft/class_3364;method_14754()Z
      named initialize Lnet/minecraft/server/rcon/QueryResponseHandler;initialize()Z