From 3473747e05857f8335e8b51aa5f662ab08cfe06d Mon Sep 17 00:00:00 2001 From: William Gaylord Date: Wed, 17 Jan 2024 11:23:45 -0600 Subject: [PATCH 1/4] Add basic class mappings for new packets added in 24w04a --- .../packet/c2s/common/CookieReqestResponseS2CPacket.mapping | 1 + .../network/packet/s2c/common/CookieRequestS2CPacket.mapping | 1 + .../network/packet/s2c/common/StoreCookieS2CPacket.mapping | 1 + .../network/packet/s2c/play/ServerTransferS2CPacket.mapping | 1 + 4 files changed, 4 insertions(+) create mode 100644 mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping create mode 100644 mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping create mode 100644 mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping create mode 100644 mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping diff --git a/mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping b/mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping new file mode 100644 index 0000000000..f79f30089f --- /dev/null +++ b/mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping @@ -0,0 +1 @@ +CLASS net/minecraft/class_9091 net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket diff --git a/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping new file mode 100644 index 0000000000..a1efb37b98 --- /dev/null +++ b/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping @@ -0,0 +1 @@ +CLASS net/minecraft/class_9088 net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket diff --git a/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping new file mode 100644 index 0000000000..cce7b718de --- /dev/null +++ b/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping @@ -0,0 +1 @@ +CLASS net/minecraft/class_9150 net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket diff --git a/mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping new file mode 100644 index 0000000000..1514f732e3 --- /dev/null +++ b/mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping @@ -0,0 +1 @@ +CLASS net/minecraft/class_9151 net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket From 87a28cc02bd6a84f962f458ff533cc9a2c4b12f6 Mon Sep 17 00:00:00 2001 From: William Gaylord Date: Wed, 17 Jan 2024 12:56:08 -0600 Subject: [PATCH 2/4] Fix typo in CookieRequestResponse packet name --- ...S2CPacket.mapping => CookieRequestResponseS2CPacket.mapping} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename mappings/net/minecraft/network/packet/c2s/common/{CookieReqestResponseS2CPacket.mapping => CookieRequestResponseS2CPacket.mapping} (62%) diff --git a/mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping b/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping similarity index 62% rename from mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping rename to mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping index f79f30089f..d93b0b99ae 100644 --- a/mappings/net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket.mapping +++ b/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping @@ -1 +1 @@ -CLASS net/minecraft/class_9091 net/minecraft/network/packet/c2s/common/CookieReqestResponseS2CPacket +CLASS net/minecraft/class_9091 net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket From e7f9d168a7b20a1a64896396594f763598d7776d Mon Sep 17 00:00:00 2001 From: William Gaylord Date: Wed, 17 Jan 2024 13:13:29 -0600 Subject: [PATCH 3/4] Map CODEC field and write field in packets, also map MAX_COOKIE_LENGTH, move ServerTransfer Packet to correct package. --- .../packet/c2s/common/CookieRequestResponseS2CPacket.mapping | 2 ++ .../network/packet/s2c/common/CookieRequestS2CPacket.mapping | 2 ++ .../network/packet/s2c/common/ServerTransferS2CPacket.mapping | 3 +++ .../network/packet/s2c/common/StoreCookieS2CPacket.mapping | 3 +++ .../network/packet/s2c/play/ServerTransferS2CPacket.mapping | 1 - 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 mappings/net/minecraft/network/packet/s2c/common/ServerTransferS2CPacket.mapping delete mode 100644 mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping diff --git a/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping b/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping index d93b0b99ae..9a425e99dd 100644 --- a/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping +++ b/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping @@ -1 +1,3 @@ CLASS net/minecraft/class_9091 net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket + FIELD field_47895 CODEC Lnet/minecraft/class_9139; + METHOD method_55853 write (Lnet/minecraft/class_2540;)V diff --git a/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping index a1efb37b98..7af26c6505 100644 --- a/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping +++ b/mappings/net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket.mapping @@ -1 +1,3 @@ CLASS net/minecraft/class_9088 net/minecraft/network/packet/s2c/common/CookieRequestS2CPacket + FIELD field_47892 CODEC Lnet/minecraft/class_9139; + METHOD method_55848 write (Lnet/minecraft/class_2540;)V diff --git a/mappings/net/minecraft/network/packet/s2c/common/ServerTransferS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/common/ServerTransferS2CPacket.mapping new file mode 100644 index 0000000000..29ee750174 --- /dev/null +++ b/mappings/net/minecraft/network/packet/s2c/common/ServerTransferS2CPacket.mapping @@ -0,0 +1,3 @@ +CLASS net/minecraft/class_9151 net/minecraft/network/packet/s2c/common/ServerTransferS2CPacket + FIELD field_48629 CODEC Lnet/minecraft/class_9139; + METHOD method_56469 write (Lnet/minecraft/class_2540;)V diff --git a/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping index cce7b718de..6bc46d077c 100644 --- a/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping +++ b/mappings/net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket.mapping @@ -1 +1,4 @@ CLASS net/minecraft/class_9150 net/minecraft/network/packet/s2c/common/StoreCookieS2CPacket + FIELD field_48627 CODEC Lnet/minecraft/class_9139; + FIELD field_48628 MAX_COOKIE_LENGTH I + METHOD method_56467 write (Lnet/minecraft/class_2540;)V diff --git a/mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping b/mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping deleted file mode 100644 index 1514f732e3..0000000000 --- a/mappings/net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket.mapping +++ /dev/null @@ -1 +0,0 @@ -CLASS net/minecraft/class_9151 net/minecraft/network/packet/s2c/play/ServerTransferS2CPacket From 695aee6d0ddcba19eecf20f0322779da94b85039 Mon Sep 17 00:00:00 2001 From: William Gaylord Date: Wed, 17 Jan 2024 13:35:03 -0600 Subject: [PATCH 4/4] Fix typo where packet direction was wrong in class name --- ...S2CPacket.mapping => CookieRequestResponseC2SPacket.mapping} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename mappings/net/minecraft/network/packet/c2s/common/{CookieRequestResponseS2CPacket.mapping => CookieRequestResponseC2SPacket.mapping} (81%) diff --git a/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping b/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseC2SPacket.mapping similarity index 81% rename from mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping rename to mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseC2SPacket.mapping index 9a425e99dd..e5a96ee52a 100644 --- a/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket.mapping +++ b/mappings/net/minecraft/network/packet/c2s/common/CookieRequestResponseC2SPacket.mapping @@ -1,3 +1,3 @@ -CLASS net/minecraft/class_9091 net/minecraft/network/packet/c2s/common/CookieRequestResponseS2CPacket +CLASS net/minecraft/class_9091 net/minecraft/network/packet/c2s/common/CookieRequestResponseC2SPacket FIELD field_47895 CODEC Lnet/minecraft/class_9139; METHOD method_55853 write (Lnet/minecraft/class_2540;)V