map login packets (#463)

This commit is contained in:
Adrian Siekierka 2019-02-16 21:50:10 +01:00 committed by GitHub
parent 403c3308d9
commit 5fa5a01590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 61 additions and 4 deletions

View File

@ -2,9 +2,14 @@ CLASS dcp net/minecraft/client/network/ClientLoginNetworkHandler
FIELD a LOGGER Lorg/apache/logging/log4j/Logger;
FIELD b client Lcqn;
FIELD c parentGui Lcut;
FIELD d statusConsumer Ljava/util/function/Consumer;
FIELD e connection Liu;
FIELD f playerProfile Lcom/mojang/authlib/GameProfile;
METHOD <init> (Liu;Lcqn;Lcut;Ljava/util/function/Consumer;)V
ARG 1 connection
ARG 2 client
ARG 3 parentGui
ARG 4 statusConsumer
METHOD a joinServerSession (Ljava/lang/String;)Ljg;
ARG 1 serverId
METHOD b getSessionService ()Lcom/mojang/authlib/minecraft/MinecraftSessionService;

View File

@ -0,0 +1,2 @@
CLASS pg net/minecraft/client/network/packet/LoginCompressionS2CPacket
METHOD b getMinCompressedSize ()I

View File

@ -0,0 +1,3 @@
CLASS ph net/minecraft/client/network/packet/LoginDisconnectS2CPacket
FIELD a reason Ljg;
METHOD b getReason ()Ljg;

View File

@ -0,0 +1,5 @@
CLASS pf net/minecraft/client/network/packet/LoginHelloS2CPacket
FIELD a serverId Ljava/lang/String;
FIELD b publicKey Ljava/security/PublicKey;
METHOD b getServerId ()Ljava/lang/String;
METHOD c getPublicKey ()Ljava/security/PublicKey;

View File

@ -0,0 +1,5 @@
CLASS pd net/minecraft/client/network/packet/LoginQueryRequestS2CPacket
FIELD a queryId I
FIELD b channel Lqh;
FIELD c payload Liw;
METHOD b getQueryId ()I

View File

@ -0,0 +1,2 @@
CLASS pe net/minecraft/client/network/packet/LoginSuccessS2CPacket
METHOD b getPlayerProfile ()Lcom/mojang/authlib/GameProfile;

View File

@ -1,4 +1,6 @@
CLASS iu net/minecraft/network/ClientConnection
FIELD a MARKER_NETWORK Lorg/apache/logging/log4j/Marker;
FIELD b MARKER_NETWORK_PACKETS Lorg/apache/logging/log4j/Marker;
FIELD c ATTR_KEY_PROTOCOL Lio/netty/util/AttributeKey;
FIELD d CLIENT_IO_GROUP Lze;
FIELD e CLIENT_IO_GROUP_EPOLL Lze;
@ -12,6 +14,11 @@ CLASS iu net/minecraft/network/ClientConnection
FIELD n disconnectReason Ljg;
FIELD o encrypted Z
FIELD p disconnected Z
FIELD q packetsReceivedCounter I
FIELD r packetsSentCounter I
FIELD s avgPacketsReceived F
FIELD t avgPacketsSent F
FIELD u ticks I
METHOD a tick ()V
METHOD a setMinCompressedSize (I)V
METHOD a setState (Liv;)V
@ -34,6 +41,7 @@ CLASS iu net/minecraft/network/ClientConnection
METHOD h hasChannel ()Z
METHOD i getPacketListener ()Liz;
METHOD j getDisconnectReason ()Ljg;
METHOD k disableAutoRead ()V
METHOD l handleDisconnection ()V
METHOD m getPacketsReceived ()F
METHOD n getPacketsSent ()F
METHOD m getAveragePacketsReceived ()F
METHOD n getAveragePacketsSent ()F

View File

@ -18,6 +18,7 @@ CLASS yx net/minecraft/network/NetworkEncryptionUtils
METHOD a encrypt (Ljava/security/Key;[B)[B
ARG 0 key
ARG 1 data
METHOD a readEncodedPublicKey ([B)Ljava/security/PublicKey;
METHOD b generateServerKeyPair ()Ljava/security/KeyPair;
METHOD b decrypt (Ljava/security/Key;[B)[B
ARG 0 key

View File

@ -1 +1,10 @@
CLASS pc net/minecraft/network/listener/ClientLoginPacketListener
METHOD a onQueryRequest (Lpd;)V
ARG 1 packet
METHOD a onLoginSuccess (Lpe;)V
METHOD a onHello (Lpf;)V
ARG 1 packet
METHOD a onCompression (Lpg;)V
ARG 1 packet
METHOD a onDisconnect (Lph;)V
ARG 1 packet

View File

@ -78,6 +78,7 @@ CLASS jx net/minecraft/network/listener/ClientPlayPacketListener
METHOD a onMapUpdate (Llk;)V
ARG 1 packet
METHOD a onSetVillagerRecipes (Lll;)V
ARG 1 packet
METHOD a onEntityUpdate (Llm;)V
ARG 1 packet
METHOD a onVehicleMove (Lln;)V

View File

@ -1,3 +1,3 @@
CLASS iz net/minecraft/network/listener/PacketListener
METHOD a onConnectionLost (Ljg;)V
ARG 1 disconnectReason
METHOD a onDisconnected (Ljg;)V
ARG 1 reason

View File

@ -1,3 +1,4 @@
CLASS pi net/minecraft/network/listener/ServerLoginPacketListener
METHOD a onQueryResponse (Lpj;)V
METHOD a onHello (Lpk;)V
METHOD a onKey (Lpl;)V

View File

@ -40,6 +40,7 @@ CLASS xe net/minecraft/server/PlayerManager
METHOD a onPlayerConnect (Liu;Luv;)V
ARG 1 connection
METHOD a getPlayer (Ljava/lang/String;)Luv;
METHOD a checkCanJoin (Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Ljg;
METHOD a getPlayer (Ljava/util/UUID;)Luv;
METHOD a sendToAll (Ljg;)V
METHOD a broadcastChatMessage (Ljg;Z)V

View File

@ -1,5 +1,8 @@
CLASS pr net/minecraft/server/ServerMetadata
CLASS pr$a Players
CLASS pr$a$a Deserializer
METHOD a fromJson (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lpr$a;
METHOD a toJson (Lpr$a;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
FIELD a max I
FIELD b online I
FIELD c sample [Lcom/mojang/authlib/GameProfile;
@ -9,7 +12,13 @@ CLASS pr net/minecraft/server/ServerMetadata
METHOD a setSample ([Lcom/mojang/authlib/GameProfile;)V
METHOD b getOnlinePlayerCount ()I
METHOD c getSample ()[Lcom/mojang/authlib/GameProfile;
CLASS pr$b Deserializer
METHOD a fromJson (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lpr;
METHOD a toJson (Lpr;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
CLASS pr$c Version
CLASS pr$c$a Serializer
METHOD a fromJson (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lpr$c;
METHOD a toJson (Lpr$c;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
FIELD a gameVersion Ljava/lang/String;
FIELD b protocolVersion I
METHOD a getGameVersion ()Ljava/lang/String;

View File

@ -1,12 +1,14 @@
CLASS vp net/minecraft/server/network/ServerLoginNetworkHandler
CLASS vp$a State
FIELD a client Liu;
FIELD b authenticatorThreadId Ljava/util/concurrent/atomic/AtomicInteger;
FIELD c LOGGER Lorg/apache/logging/log4j/Logger;
FIELD d RANDOM Ljava/util/Random;
FIELD f server Lnet/minecraft/server/MinecraftServer;
FIELD g state Lvp$a;
FIELD h loginTicks I
FIELD i profile Lcom/mojang/authlib/GameProfile;
FIELD k secretKey Ljavax/crypto/SecretKey;
FIELD l clientEntity Luv;
METHOD a toOfflineProfile (Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;
METHOD b disconnect (Ljg;)V

View File

@ -0,0 +1,3 @@
CLASS pj net/minecraft/server/network/packet/LoginQueryResponseC2SPacket
FIELD a queryId I
FIELD b response Liw;