Class SettingGroup


public class SettingGroup extends BooleanSetting
A group of settings that extends BooleanSetting.

When toggleable, left-click toggles the enabled state; when non-toggleable, it acts purely as a folder. Right-click always expands / collapses the children.

Usage:


 SettingGroup targets = addSetting(new SettingGroup("Targets")
         .add(new BooleanSetting("Players").defaultValue(true))
         .add(new BooleanSetting("Mobs").defaultValue(false)));

 SettingGroup shield = addSetting(new SettingGroup("Shield Break")
         .toggleable()
         .defaultValue(true)
         .add(new NumberSetting<Double>("Delay").defaultValue(0.5).min(0.0).max(2.0)));