Boolean Value
bool()
Creates a boolean value.
BooleanValue enabled = category.bool("enabled", true);
The second argument is the default value.
get()
Gets the current value.
boolean enabled = value.get();
set()
Changes the current value.
value.set(false);
getDefault()
Gets the default value.
boolean defaultValue = value.getDefault();
resetToDefault()
Resets the value back to its default value.
value.resetToDefault();
comment()
Adds a TOML comment.
value.comment("Whether the feature is enabled.");
tooltip()
Adds a tooltip for the Mod Menu UI.
value.tooltip("Turns the feature on or off.");