Cloth Config API (Fabric/Forge/NeoForge)

Cloth Config API (Fabric/Forge/NeoForge)

169M Downloads

Translatable Enums using AutoConfig?

thedocruby opened this issue ยท 2 comments

commented

What syntax would I use to add a translation to the enum values of a dropdown or button when using AutoConfig? looking through the code I can see something about a default name provider and translatables, but I can't seem to figure out how to implement it in practice. Also, since the enum handler annotation isn't even mentioned in the auto config 1u wiki, I don't know where else to look. Any help? Thanks.

commented

override toString

commented

Okay, thanks, i just thought there might be a less hacky way to do it.