-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin work on packet codecs * Recipe packet codecs * misc packet codec & *packet* packet codecs * more misc packet codecs * fix typos
- Loading branch information
1 parent
e003d74
commit ef33717
Showing
244 changed files
with
676 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
CLASS net/minecraft/class_4050 net/minecraft/entity/EntityPose | ||
FIELD field_48322 INDEX_TO_VALUE Ljava/util/function/IntFunction; | ||
FIELD field_48323 PACKET_CODEC Lnet/minecraft/class_9139; | ||
FIELD field_48324 index I | ||
METHOD <init> (Ljava/lang/String;II)V | ||
ARG 3 index | ||
METHOD method_56081 getIndex ()I |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
CLASS net/minecraft/class_9139 net/minecraft/network/codec/PacketCodec | ||
METHOD method_56430 cast ()Lnet/minecraft/class_9139; | ||
METHOD method_56431 unit (Ljava/lang/Object;)Lnet/minecraft/class_9139; | ||
ARG 0 value | ||
METHOD method_56432 xmap (Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_9139; | ||
ARG 1 to | ||
ARG 2 from | ||
METHOD method_56433 mapResult (Lnet/minecraft/class_9139$class_9140;)Lnet/minecraft/class_9139; | ||
ARG 1 function | ||
METHOD method_56434 record (Lnet/minecraft/class_9139;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_9139; | ||
ARG 0 codec | ||
ARG 1 from | ||
ARG 2 to | ||
METHOD method_56435 record (Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lnet/minecraft/class_9139; | ||
ARG 0 codec1 | ||
ARG 1 from1 | ||
ARG 2 codec2 | ||
ARG 3 from2 | ||
ARG 4 to | ||
METHOD method_56436 record (Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lcom/mojang/datafixers/util/Function3;)Lnet/minecraft/class_9139; | ||
ARG 0 codec1 | ||
ARG 1 from1 | ||
ARG 2 codec2 | ||
ARG 3 from2 | ||
ARG 4 codec3 | ||
ARG 5 from3 | ||
ARG 6 to | ||
METHOD method_56437 of (Lnet/minecraft/class_9142;Lnet/minecraft/class_9141;)Lnet/minecraft/class_9139; | ||
ARG 0 encoder | ||
ARG 1 decoder | ||
METHOD method_56438 of (Lnet/minecraft/class_9143;Lnet/minecraft/class_9141;)Lnet/minecraft/class_9139; | ||
ARG 0 encoder | ||
ARG 1 decoder | ||
METHOD method_56439 mapBuf (Ljava/util/function/Function;)Lnet/minecraft/class_9139; | ||
ARG 1 function | ||
METHOD method_56440 dispatch (Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_9139; | ||
ARG 1 type | ||
ARG 2 codec | ||
CLASS class_9140 ResultFunction | ||
METHOD apply (Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 1 codec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
CLASS net/minecraft/class_9135 net/minecraft/network/codec/PacketCodecs | ||
FIELD field_48547 BOOL Lnet/minecraft/class_9139; | ||
FIELD field_48548 BYTE Lnet/minecraft/class_9139; | ||
FIELD field_48549 SHORT Lnet/minecraft/class_9139; | ||
FIELD field_48550 VAR_INT Lnet/minecraft/class_9139; | ||
FIELD field_48551 VAR_LONG Lnet/minecraft/class_9139; | ||
FIELD field_48552 FLOAT Lnet/minecraft/class_9139; | ||
FIELD field_48553 DOUBLE Lnet/minecraft/class_9139; | ||
FIELD field_48554 STRING Lnet/minecraft/class_9139; | ||
FIELD field_48555 NBT_ELEMENT Lnet/minecraft/class_9139; | ||
FIELD field_48556 NBT_COMPUND Lnet/minecraft/class_9139; | ||
FIELD field_48557 OPTIONAL_NBT Lnet/minecraft/class_9139; | ||
FIELD field_48558 VECTOR3F Lnet/minecraft/class_9139; | ||
FIELD field_48559 QUATERNION Lnet/minecraft/class_9139; | ||
METHOD method_56363 listMapper ()Lnet/minecraft/class_9139$class_9140; | ||
METHOD method_56364 string (I)Lnet/minecraft/class_9139; | ||
ARG 0 length | ||
METHOD method_56365 registry (Lnet/minecraft/class_5321;)Lnet/minecraft/class_9139; | ||
ARG 0 registry | ||
METHOD method_56366 registry (Lnet/minecraft/class_5321;Ljava/util/function/Function;)Lnet/minecraft/class_9139; | ||
ARG 0 registry | ||
ARG 1 registryTransformer | ||
METHOD method_56367 registryEntry (Lnet/minecraft/class_5321;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 0 registry | ||
ARG 1 fallback | ||
METHOD method_56368 ofCodec (Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_9139; | ||
ARG 0 codec | ||
METHOD method_56369 (Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lnet/minecraft/class_2520; | ||
ARG 1 value | ||
METHOD method_56370 (Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2520;)Ljava/lang/Object; | ||
ARG 1 nbt | ||
METHOD method_56371 ofIterable (Lnet/minecraft/class_2359;)Lnet/minecraft/class_9139; | ||
ARG 0 iterable | ||
METHOD method_56373 (Ljava/lang/Object;Ljava/lang/String;)Lio/netty/handler/codec/EncoderException; | ||
ARG 1 error | ||
METHOD method_56374 collectionMapper (Ljava/util/function/IntFunction;)Lnet/minecraft/class_9139$class_9140; | ||
ARG 0 factory | ||
METHOD method_56375 indexed (Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_9139; | ||
ARG 0 from | ||
ARG 1 to | ||
METHOD method_56376 collection (Ljava/util/function/IntFunction;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 0 factory | ||
ARG 1 elementCodec | ||
METHOD method_56377 map (Ljava/util/function/IntFunction;Lnet/minecraft/class_9139;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 0 factory | ||
ARG 1 keyCodec | ||
ARG 2 valueCodec | ||
METHOD method_56378 nbt (Ljava/util/function/Supplier;)Lnet/minecraft/class_9139; | ||
ARG 0 sizeTracker | ||
METHOD method_56379 (Lnet/minecraft/class_2487;)Lnet/minecraft/class_2520; | ||
ARG 0 nbt | ||
METHOD method_56380 (Lnet/minecraft/class_2520;)Lnet/minecraft/class_2487; | ||
ARG 0 nbt | ||
METHOD method_56381 (Lnet/minecraft/class_2520;Ljava/lang/String;)Lio/netty/handler/codec/DecoderException; | ||
ARG 1 error | ||
METHOD method_56382 optional (Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 0 codec | ||
METHOD method_56383 registryEntry (Lnet/minecraft/class_5321;)Lnet/minecraft/class_9139; | ||
ARG 0 registry | ||
METHOD method_56384 (Ljava/util/function/IntFunction;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 1 codec | ||
METHOD method_56385 (Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139; | ||
ARG 0 codec | ||
CLASS 9 | ||
METHOD method_56424 getIterable (Lnet/minecraft/class_9129;)Lnet/minecraft/class_2359; | ||
ARG 1 buf | ||
CLASS 10 | ||
FIELD field_48562 DIRECT_ENTRY_MARKER I | ||
METHOD method_56390 getEntries (Lnet/minecraft/class_9129;)Lnet/minecraft/class_2359; | ||
ARG 1 buf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CLASS net/minecraft/class_9141 net/minecraft/network/codec/PacketDecoder | ||
METHOD decode (Ljava/lang/Object;)Ljava/lang/Object; | ||
ARG 1 buf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CLASS net/minecraft/class_9142 net/minecraft/network/codec/PacketEncoder | ||
METHOD encode (Ljava/lang/Object;Ljava/lang/Object;)V | ||
ARG 1 buf | ||
ARG 2 value |
10 changes: 10 additions & 0 deletions
10
mappings/net/minecraft/network/codec/RegistryByteBuf.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CLASS net/minecraft/class_9129 net/minecraft/network/codec/RegistryByteBuf | ||
FIELD field_48538 registryManager Lnet/minecraft/class_5455; | ||
METHOD <init> (Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_5455;)V | ||
ARG 1 buf | ||
ARG 2 registryManager | ||
METHOD method_56349 getRegistryManager ()Lnet/minecraft/class_5455; | ||
METHOD method_56350 makeFactory (Lnet/minecraft/class_5455;)Ljava/util/function/Function; | ||
ARG 0 registryManager | ||
METHOD method_56351 (Lnet/minecraft/class_5455;Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_9129; | ||
ARG 1 buf |
4 changes: 4 additions & 0 deletions
4
mappings/net/minecraft/network/codec/ValueFirstEncoder.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CLASS net/minecraft/class_9143 net/minecraft/network/codec/ValueFirstEncoder | ||
METHOD encode (Ljava/lang/Object;Ljava/lang/Object;)V | ||
ARG 1 value | ||
ARG 2 buf |
23 changes: 23 additions & 0 deletions
23
mappings/net/minecraft/network/packet/CustomPayload.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
CLASS net/minecraft/class_8710 net/minecraft/network/packet/CustomPayload | ||
METHOD method_56479 getKey ()Lnet/minecraft/class_8710$class_9154; | ||
METHOD method_56483 keyOf (Ljava/lang/String;)Lnet/minecraft/class_8710$class_9154; | ||
ARG 0 id | ||
METHOD method_56484 codecOf (Lnet/minecraft/class_9143;Lnet/minecraft/class_9141;)Lnet/minecraft/class_9139; | ||
ARG 0 encoder | ||
ARG 1 decoder | ||
METHOD method_56485 createCodec (Lnet/minecraft/class_8710$class_9153;Ljava/util/List;)Lnet/minecraft/class_9139; | ||
ARG 0 factory | ||
ARG 1 codecs | ||
METHOD method_56486 (Lnet/minecraft/class_8710$class_9155;)Lnet/minecraft/class_2960; | ||
ARG 0 pair | ||
CLASS 1 | ||
METHOD method_56487 getCodec (Lnet/minecraft/class_2960;)Lnet/minecraft/class_9139; | ||
ARG 1 id | ||
METHOD method_56489 encode (Lnet/minecraft/class_2540;Lnet/minecraft/class_8710$class_9154;Lnet/minecraft/class_8710;)V | ||
ARG 1 value | ||
ARG 2 type | ||
ARG 3 payload | ||
CLASS class_9153 CodecFactory | ||
METHOD create (Lnet/minecraft/class_2960;)Lnet/minecraft/class_9139; | ||
ARG 1 id | ||
CLASS class_9154 Type | ||
CLASS class_9155 CodecPair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
mappings/net/minecraft/network/packet/c2s/common/ClientOptionsC2SPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
CLASS net/minecraft/class_2803 net/minecraft/network/packet/c2s/common/ClientOptionsC2SPacket | ||
FIELD comp_1963 options Lnet/minecraft/class_8791; | ||
FIELD field_48645 CODEC Lnet/minecraft/class_9139; | ||
METHOD <init> (Lnet/minecraft/class_2540;)V | ||
ARG 1 buf | ||
METHOD comp_1963 options ()Lnet/minecraft/class_8791; | ||
METHOD method_56474 write (Lnet/minecraft/class_2540;)V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
mappings/net/minecraft/network/packet/c2s/common/KeepAliveC2SPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
CLASS net/minecraft/class_2827 net/minecraft/network/packet/c2s/common/KeepAliveC2SPacket | ||
FIELD field_12883 id J | ||
FIELD field_48647 CODEC Lnet/minecraft/class_9139; | ||
METHOD <init> (J)V | ||
ARG 1 id | ||
METHOD <init> (Lnet/minecraft/class_2540;)V | ||
ARG 1 buf | ||
METHOD method_12267 getId ()J | ||
METHOD method_56476 write (Lnet/minecraft/class_2540;)V |
2 changes: 2 additions & 0 deletions
2
mappings/net/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
CLASS net/minecraft/class_2856 net/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket | ||
FIELD comp_2164 status Lnet/minecraft/class_2856$class_2857; | ||
FIELD field_48649 CODEC Lnet/minecraft/class_9139; | ||
METHOD <init> (Lnet/minecraft/class_2540;)V | ||
ARG 1 buf | ||
METHOD comp_2164 status ()Lnet/minecraft/class_2856$class_2857; | ||
METHOD method_56478 write (Lnet/minecraft/class_2540;)V | ||
CLASS class_2857 Status | ||
METHOD method_55627 hasFinished ()Z |
2 changes: 2 additions & 0 deletions
2
mappings/net/minecraft/network/packet/c2s/config/ReadyC2SPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
CLASS net/minecraft/class_8736 net/minecraft/network/packet/c2s/config/ReadyC2SPacket | ||
FIELD field_48700 INSTANCE Lnet/minecraft/class_8736; | ||
FIELD field_48701 CODEC Lnet/minecraft/class_9139; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
mappings/net/minecraft/network/packet/c2s/login/EnterConfigurationC2SPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
CLASS net/minecraft/class_8593 net/minecraft/network/packet/c2s/login/EnterConfigurationC2SPacket | ||
FIELD field_48252 INSTANCE Lnet/minecraft/class_8593; | ||
FIELD field_48253 CODEC Lnet/minecraft/class_9139; |
2 changes: 2 additions & 0 deletions
2
mappings/net/minecraft/network/packet/c2s/login/LoginHelloC2SPacket.mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
CLASS net/minecraft/class_2915 net/minecraft/network/packet/c2s/login/LoginHelloC2SPacket | ||
FIELD field_48250 CODEC Lnet/minecraft/class_9139; | ||
METHOD <init> (Lnet/minecraft/class_2540;)V | ||
ARG 1 buf | ||
METHOD method_56020 write (Lnet/minecraft/class_2540;)V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.