Package my.celium.org.config
package my.celium.org.config
Typed, validated JSON configs: build one with
Mycel.config(ModMetadata), read values through ConfigValue. Every config also works with /mycel get|set|reset and the generated config screen.-
ClassDescriptionFluent builder for a mod's configuration.String conversion for
ConfigValues: display, parsing and lookup by path.ConfigValue<T>A single typed configuration value.Boolean value.Double value with an inclusive range.ConfigValue.EnumValue<E extends Enum<E>>Enum value; unknown names on disk fall back to the default.Integer value with an inclusive range.Long value with an inclusive range.List-of-strings value (defensive copies in and out).String value with a maximum length.Live handle for one mod's configuration, backed byconfig/<modid>.json.The kind of aConfigValue; used by persistence and the config screen.