wisp-forest / owo-lib

Open ωorthωhile Operations, yes the acronym was "totally accidental"
https://modrinth.com/mod/owo-lib
MIT License
191 stars 37 forks source link

[Feature Request] [owo-config] Enum list support #222

Open Chailotl opened 6 months ago

Chailotl commented 6 months ago

You can have enums, and you can have lists, but could we also have enum lists too?

@Config(name = "my-config", wrapperName = "MyConfig")
public class MyConfigModel {
    public List<Choices> anEnumListOption = Arrays.asList(
        Choices.A_CHOICE,
        Choices.A_CHOICE,
        Choices.ANOTHER_CHOICE,
        Choices.A_CHOICE
    );

    public enum Choices {
        A_CHOICE, ANOTHER_CHOICE;
    }
}