Skip to content

Commit

Permalink
Correct typo in StringIdentifiable#createCodec Javadoc (#4076)
Browse files Browse the repository at this point in the history
There is an overload which takes a decode function, but the normal function doesn't and will just use `StringIdentifiable#asString`
  • Loading branch information
Chocohead authored Jan 7, 2025
1 parent 92ce82d commit 6bc65da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mappings/net/minecraft/util/StringIdentifiable.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ CLASS net/minecraft/class_3542 net/minecraft/util/StringIdentifiable
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;
COMMENT Creates a codec that serializes an enum implementing this interface either
COMMENT using its ordinals (when compressed) or using its {@link #asString()} method
COMMENT and a given decode function.
COMMENT using its ordinals (when compressed) or using its {@link #asString()} method.
ARG 0 enumValues
METHOD method_28142 toKeyable ([Lnet/minecraft/class_3542;)Lcom/mojang/serialization/Keyable;
ARG 0 values
Expand Down

0 comments on commit 6bc65da

Please sign in to comment.