Map some easy packet classes and a package info (#2401)

used generatePackageInfoMappings to generate package info

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2021-05-16 19:05:52 +07:00 committed by GitHub
parent 1b024ab7c1
commit f0efd6b628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 0 deletions

View File

@ -201,3 +201,5 @@ CLASS net/minecraft/class_2602 net/minecraft/network/listener/ClientPlayPacketLi
ARG 1 packet
METHOD method_34084 onTitleFade (Lnet/minecraft/class_5905;)V
ARG 1 packet
METHOD method_36895 onPing (Lnet/minecraft/class_6373;)V
ARG 1 packet

View File

@ -88,3 +88,5 @@ CLASS net/minecraft/class_2792 net/minecraft/network/listener/ServerPlayPacketLi
ARG 1 packet
METHOD method_30303 onRecipeCategoryOptions (Lnet/minecraft/class_5427;)V
ARG 1 packet
METHOD method_36580 onPong (Lnet/minecraft/class_6374;)V
ARG 1 packet

View File

@ -0,0 +1,14 @@
CLASS net/minecraft/class_6374 net/minecraft/network/packet/c2s/play/PlayPongC2SPacket
COMMENT This is a packet that is sent by the client during tick after receiving a
COMMENT play ping packet from the server, passing the {@link #parameter} back to the
COMMENT server.
COMMENT
COMMENT @see net.minecraft.network.packet.s2c.play.PlayPingS2CPacket
COMMENT @see net.minecraft.network.packet.c2s.play.KeepAliveC2SPacket
COMMENT @see net.minecraft.network.packet.c2s.query.QueryPingC2SPacket
FIELD field_33752 parameter I
METHOD <init> (I)V
ARG 1 parameter
METHOD <init> (Lnet/minecraft/class_2540;)V
ARG 1 buf
METHOD method_36960 getParameter ()I

View File

@ -0,0 +1,19 @@
CLASS net/minecraft/class_6373 net/minecraft/network/packet/s2c/play/PlayPingS2CPacket
COMMENT A packet sent by the server; the client will reply with a pong packet on the
COMMENT first tick after it receives this packet, with the same {@link #parameter}.
COMMENT
COMMENT @see net.minecraft.network.packet.c2s.play.PlayPongC2SPacket
COMMENT @see net.minecraft.network.packet.s2c.play.KeepAliveS2CPacket
COMMENT @see net.minecraft.network.packet.s2c.query.QueryPongS2CPacket
FIELD field_33751 parameter I
COMMENT The parameter of this ping packet.
COMMENT
COMMENT <p>If this number represents a tick, this could measure the network delay in
COMMENT ticks. It is possible to be a tick number given the reply packet is sent on
COMMENT the client on the main thread's tick, and the number is sent as a regular int
COMMENT than a varint.
METHOD <init> (I)V
ARG 1 parameter
METHOD <init> (Lnet/minecraft/class_2540;)V
ARG 1 buf
METHOD method_36950 getParameter ()I

View File

@ -0,0 +1 @@
CLASS net/minecraft/class_6372 net/minecraft/unused/packageinfo/PackageInfo6372