From 12cfad37c869ece285a87c1cdbeedaae877d35ba Mon Sep 17 00:00:00 2001 From: Chocohead Date: Tue, 7 Jan 2025 00:51:34 +0000 Subject: [PATCH] Correct typo in StringIdentifiable#createCodec Javadoc There is an overload which takes a decode function, but the normal function doesn't and will just use `StringIdentifiable#asString` --- mappings/net/minecraft/util/StringIdentifiable.mapping | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mappings/net/minecraft/util/StringIdentifiable.mapping b/mappings/net/minecraft/util/StringIdentifiable.mapping index ab50e61df1..d8c2bcceb4 100644 --- a/mappings/net/minecraft/util/StringIdentifiable.mapping +++ b/mappings/net/minecraft/util/StringIdentifiable.mapping @@ -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