Serpentine
ModMIT

Serpentine

Serpentine is a light weight config library mod based on providing fast configuration to any mod needing it

59
Downloads
0
Followers
3 months ago
Updated
📦
3
Versions

📖About Serpentine

Multiplayer only works on 2.0.0+

github

Serpentine

Serpentine is a lightweight configuration library mod that can easily be used in other projects.

Serpentine provides an easy way to setup configuration for any mod, all you need is a class that extends the Config class provided by Serpentine and to then register it in your modInitializer.

Potential Bloat

what bloat?

The config screen is probably the only bloat in this mod but even then its just three classes that automate making a config screen for you.

what does the config screen do?

The config screen parses your config's expects and detects their default value's type. If it is an integer it makes a SliderWidget that goes from 0-100 (I'll add more customisation for this in later versions), if it is a boolean it'll make two buttons for True and False, the currently selected one (not saved one) will have a checkmark next to it. If it is a float or string then a textField will be made where the user can type in their desired value.

How to setup serpentine?

Check this out for how to install serpentine as a dependency.

Then to setup a config, check out this example