Class CodecType<T>
java.lang.Object
net.ixdarklord.coolcatcore.api.config.type.CodecType<T>
- All Implemented Interfaces:
ConfigType<T>
Any value with a
Codec: records, maps, item stacks... Edited as JSON in the config screen. The optional
validator returns an error message, or null for a valid value.-
Method Details
-
codec
- Specified by:
codecin interfaceConfigType<T>
-
validate
Description copied from interface:ConfigTypeChecks a value, possibly correcting it.- Specified by:
validatein interfaceConfigType<T>
-
describe
Description copied from interface:ConfigTypeThe constraints in words, for the file's comments and the screen's tooltips ("Range: 0 ~ 10").- Specified by:
describein interfaceConfigType<T>
-