Skip to content

Commit

Permalink
Rename StringIdentifiable.Codec to StringIdentifiable.EnumCodec (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorCraft authored Aug 23, 2023
1 parent b97e8e1 commit 7701c0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mappings/net/minecraft/util/StringIdentifiable.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CLASS net/minecraft/class_3542 net/minecraft/util/StringIdentifiable
COMMENT @apiNote To make an enum serializable with codecs, implement this on the enum class,
COMMENT implement {@link #asString} to return a unique ID, and add a {@code static final}
COMMENT field that holds {@linkplain #createCodec the codec for the enum}.
FIELD field_38377 CACHED_MAP_THRESHOLD I
METHOD method_15434 asString ()Ljava/lang/String;
COMMENT {@return the unique string representation of the enum, used for serialization}
METHOD method_28140 createCodec (Ljava/util/function/Supplier;)Lnet/minecraft/class_3542$class_7292;
Expand All @@ -31,7 +32,7 @@ CLASS net/minecraft/class_3542 net/minecraft/util/StringIdentifiable
CLASS 1
METHOD keys (Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
ARG 1 ops
CLASS class_7292 Codec
CLASS class_7292 EnumCodec
FIELD field_38378 base Lcom/mojang/serialization/Codec;
FIELD field_38379 idToIdentifiable Ljava/util/function/Function;
METHOD <init> ([Ljava/lang/Enum;Ljava/util/function/Function;)V
Expand Down

0 comments on commit 7701c0d

Please sign in to comment.