Skip to content

Commit

Permalink
Map text
Browse files Browse the repository at this point in the history
  • Loading branch information
apple502j committed Feb 29, 2024
1 parent 278bc8d commit 936cec6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
30 changes: 30 additions & 0 deletions mappings/net/minecraft/text/HoverEvent.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,31 @@ CLASS net/minecraft/class_2568 net/minecraft/text/HoverEvent
ARG 1 name
ARG 2 parsable
ARG 3 contentCodec
ARG 4 legacySerializer
METHOD method_27667 isParsable ()Z
METHOD method_27676 cast (Ljava/lang/Object;)Ljava/lang/Object;
ARG 1 o
METHOD method_54186 validate (Lnet/minecraft/class_2568$class_5247;)Lcom/mojang/serialization/DataResult;
ARG 0 action
METHOD method_54187 (Lnet/minecraft/class_2568$class_8826;)Ljava/lang/Object;
ARG 0 action
METHOD method_57979 (Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
ARG 0 text
ARG 1 ops
METHOD method_57980 (Ljava/lang/Object;)Lnet/minecraft/class_2568$class_8826;
ARG 1 value
CLASS 1
METHOD decode (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
ARG 1 ops
ARG 2 input
METHOD encode (Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
ARG 1 input
ARG 2 ops
ARG 3 prefix
METHOD method_57982 (Lcom/mojang/datafixers/util/Pair;Ljava/lang/Object;)Lcom/mojang/datafixers/util/Pair;
ARG 2 value
METHOD method_57983 (Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_2568$class_9341;Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/serialization/DataResult;
ARG 3 pair
CLASS class_5248 EntityContent
FIELD field_24351 entityType Lnet/minecraft/class_1299;
FIELD field_24352 uuid Ljava/util/UUID;
Expand All @@ -58,31 +76,43 @@ CLASS net/minecraft/class_2568 net/minecraft/text/HoverEvent
ARG 0 instance
METHOD method_54195 legacySerializer (Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
ARG 0 text
ARG 1 ops
METHOD method_54196 (Lnet/minecraft/class_2568$class_5248;)Ljava/util/Optional;
ARG 0 content
METHOD method_54197 (Lnet/minecraft/class_2568$class_5248;)Ljava/util/UUID;
ARG 0 content
METHOD method_54198 (Lnet/minecraft/class_2568$class_5248;)Lnet/minecraft/class_1299;
ARG 0 content
METHOD method_57985 (Lnet/minecraft/class_1299;Ljava/util/UUID;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2568$class_5248;
ARG 2 text
CLASS class_5249 ItemStackContent
FIELD field_24355 item Lnet/minecraft/class_6880;
FIELD field_24356 count I
FIELD field_24358 stack Lnet/minecraft/class_1799;
FIELD field_46608 ITEM_STACK_CODEC Lcom/mojang/serialization/Codec;
FIELD field_46609 CODEC Lcom/mojang/serialization/Codec;
FIELD field_49672 ENTRY_BASED_CODEC Lcom/mojang/serialization/Codec;
FIELD field_49673 changes Lnet/minecraft/class_9326;
METHOD <init> (Lnet/minecraft/class_1799;)V
ARG 1 stack
METHOD <init> (Lnet/minecraft/class_6880;ILnet/minecraft/class_9326;)V
ARG 1 item
ARG 2 count
ARG 3 changes
METHOD equals (Ljava/lang/Object;)Z
ARG 1 o
METHOD method_27683 asStack ()Lnet/minecraft/class_1799;
METHOD method_54203 legacySerializer (Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
ARG 0 text
ARG 1 ops
CLASS class_8826 EventData
FIELD field_46610 CODEC Lcom/mojang/serialization/MapCodec;
FIELD field_46611 LEGACY_CODEC Lcom/mojang/serialization/MapCodec;
METHOD method_54208 (Lnet/minecraft/class_2568$class_5247;)Lcom/mojang/serialization/Codec;
ARG 0 action
METHOD method_54209 (Lnet/minecraft/class_2568$class_5247;)Lcom/mojang/serialization/Codec;
ARG 0 action
CLASS class_9341 LegacySerializer
METHOD parse (Lnet/minecraft/class_2561;Lnet/minecraft/class_6903;)Lcom/mojang/serialization/DataResult;
ARG 1 text
ARG 2 os
9 changes: 9 additions & 0 deletions mappings/net/minecraft/text/Text.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,26 @@ CLASS net/minecraft/class_2561 net/minecraft/text/Text
FIELD field_11754 GSON Lcom/google/gson/Gson;
METHOD method_10867 toJsonString (Lnet/minecraft/class_2561;Lnet/minecraft/class_7225$class_7874;)Ljava/lang/String;
ARG 0 text
ARG 1 registries
METHOD method_10871 fromJson (Lcom/google/gson/JsonElement;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_5250;
ARG 0 json
ARG 1 registries
METHOD method_10872 fromJsonTree (Lcom/google/gson/JsonElement;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_5250;
ARG 0 json
ARG 1 registries
METHOD method_10873 fromLenientJson (Ljava/lang/String;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_5250;
ARG 0 json
ARG 1 registries
METHOD method_10874 toJson (Lnet/minecraft/class_2561;Lnet/minecraft/class_7225$class_7874;)Lcom/google/gson/JsonElement;
ARG 0 text
ARG 1 registries
METHOD method_10877 fromJson (Ljava/lang/String;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_5250;
ARG 0 json
ARG 1 registries
CLASS class_8822 Serializer
FIELD field_49665 registries Lnet/minecraft/class_7225$class_7874;
METHOD <init> (Lnet/minecraft/class_7225$class_7874;)V
ARG 1 registries
METHOD deserialize (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
ARG 1 json
ARG 2 type
Expand Down
5 changes: 5 additions & 0 deletions mappings/net/minecraft/text/TextCodecs.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ CLASS net/minecraft/class_8824 net/minecraft/text/TextCodecs
FIELD field_46598 STRINGIFIED_CODEC Lcom/mojang/serialization/Codec;
FIELD field_48540 REGISTRY_PACKET_CODEC Lnet/minecraft/class_9139;
FIELD field_48985 OPTIONAL_PACKET_CODEC Lnet/minecraft/class_9139;
FIELD field_49666 UNLIMITED_REGISTRY_PACKET_CODEC Lnet/minecraft/class_9139;
FIELD field_49667 OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC Lnet/minecraft/class_9139;
FIELD field_49668 PACKET_CODEC Lnet/minecraft/class_9139;
METHOD method_54165 (Lcom/mojang/datafixers/util/Either;)Lnet/minecraft/class_2561;
ARG 0 either
METHOD method_54166 createCodec (Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
Expand Down Expand Up @@ -36,6 +39,8 @@ CLASS net/minecraft/class_8824 net/minecraft/text/TextCodecs
ARG 1 input
ARG 2 ops
ARG 3 prefix
METHOD method_57974 (Lcom/mojang/datafixers/util/Pair;Lnet/minecraft/class_2561;)Lcom/mojang/datafixers/util/Pair;
ARG 1 text
METHOD method_57975 (Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/DynamicOps;Lcom/google/gson/JsonElement;)Lcom/mojang/serialization/DataResult;
ARG 2 json
METHOD method_57976 toJsonOps (Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/DynamicOps;
Expand Down

0 comments on commit 936cec6

Please sign in to comment.