Class BooleanType
java.lang.Object
net.ixdarklord.coolcatcore.api.config.type.BooleanType
- All Implemented Interfaces:
ConfigType<Boolean>
true or false; typed as true/false, yes/no, on/off or 1/0.-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<Boolean> codec()The value as a player would type it, the inverse ofConfigType.parse(String).Reads a value typed by a player, and validates it.Values to suggest in commands.Checks a value, possibly correcting it.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigType
describe, equals
-
Method Details
-
codec
- Specified by:
codecin interfaceConfigType<Boolean>
-
validate
Description copied from interface:ConfigTypeChecks a value, possibly correcting it.- Specified by:
validatein interfaceConfigType<Boolean>
-
parse
Description copied from interface:ConfigTypeReads a value typed by a player, and validates it. By default the text is JSON for the codec.- Specified by:
parsein interfaceConfigType<Boolean>
-
format
Description copied from interface:ConfigTypeThe value as a player would type it, the inverse ofConfigType.parse(String). By default compact JSON.- Specified by:
formatin interfaceConfigType<Boolean>
-
suggestions
Description copied from interface:ConfigTypeValues to suggest in commands.- Specified by:
suggestionsin interfaceConfigType<Boolean>
-