The-Fireplace-Minecraft-Mods / Fireplace-Lib

A library of common functionality used by my mods, in one place for easier maintenance and faster updates.
https://www.curseforge.com/minecraft/mc-mods/fireplace-lib
MIT License
3 stars 7 forks source link

Config Screen Builder redesign #21

Closed The-Fireplace closed 3 years ago

The-Fireplace commented 3 years ago

Keep the functions that add essentials for a normal config option, but have them return a builder for that type of option. Then that builder can be used to add all the optional stuff instead of overloading methods for each optional thing that needs to be made possible. This will make this system much easier to use, maintain, and expand on.

The-Fireplace commented 3 years ago

Enum dropdown setup should take an array instead of iterable, since that's what Enum.values() produces