public static final Codec<HangingSignBlock.Attachment> CODEC = StringRepresentable.fromEnum(HangingSignBlock.Attachment::values);
22
private final String name;
23
24
Attachment(final String name) {
25
this.name = name;
26
}
27
28
@Override
29
public String getSerializedName() {
30
return this.name;
31
}
32
}
33
}
34
Decompiled Minecraft 26.3 source of HangingSignBlock (net/minecraft/world/level/block/HangingSignBlock.java) with Mojang official mappings, stored verbatim on the site.