Heads up!
Added in Fzzy Config 0.6.5
Validation for a Fzzy Config-specific TriState (also found in Fabric API, Minecraft itself, etc.). It has three values, TRUE, FALSE, and DEFAULT.
Tri-states in Fzzy Config implement TriStateProvider which includes helper methods for getting and interacting with a tri-state. ValidatedTriState also implements this and so can be interacted with directly.
ValidatedField and ValidatedCondition accept a BooleanSupplier for conditions, which TriStateProvider conveniently is. DEFAULT will act like FALSE in this case. See Conditional Settings to learn more.
public ValidatedTriState myTriState = new ValidatedTriState(TriState.TRUE);public ValidatedTriState myTriState2 = new ValidatedTriState(TriState.TRUE, ValidatedTriState.WidgetType.CYCLING); //default widget has the three states side-by-side. A more classic MC cycling widget can also be used.public TriState mySimpleTriState = TriState.TRUE; //simple fields also work, validation will be wrapped automatically like most types.
Heads up!
See the documentation page here 🗗