Basically, I’m developing this Menu plugin, and at the moment it’s very WIP, but I’m trying to follow all the fancy Sponge conventions, so I want to convert the three enums currently in the plugin to CatalogTypes (especially since I want users to have the ability to add to these enums). I tried converting one, but I’m unsure if it’s set up properly, or if it’s written conventionally (in sponge’s eyes), so I was wondering if someone who knows about catalog types could look it over and verify that it’s conventionally correct and won’t break anything (and, at the moment, I don’t have time to test on a server… which is annoying, and I’ll do that some later, but having a second opinion is always helpful). Anyways, the relevant code is:
The actual catalog type:
https://github.com/SocraticPhoenix/Menu/blob/master/src/main/java/com/gmail/socraticphoenix/sponge/menu/InputType.java
The enum-imitation interface with fields and stuff:
https://github.com/SocraticPhoenix/Menu/blob/master/src/main/java/com/gmail/socraticphoenix/sponge/menu/InputTypes.java
The registry module:
https://github.com/SocraticPhoenix/Menu/blob/master/src/main/java/com/gmail/socraticphoenix/sponge/menu/catalogs/InputTypeCatalog.java
The data translator:
https://github.com/SocraticPhoenix/Menu/blob/master/src/main/java/com/gmail/socraticphoenix/sponge/menu/data/CatalogDataTranslator.java
and the registration:
https://github.com/SocraticPhoenix/Menu/blob/master/src/main/java/com/gmail/socraticphoenix/sponge/menu/MenuPlugin.java#L115
Thanks for any help!
(and if I have no idea what I’m doing, please point that out )