Annotation Interface Min
The smallest value a numeric component of a configuration record accepts.
ModConfig.bind(Class)
reports a smaller value in config.toml with its key, together with every other
problem. On a List, Map, or Optional component, it applies to each
value. The bound may be a fraction (@Min(0.1)); it is not NaN. Values are
compared as double. Storage records ignore it.
record Settings(@Min(1) @Max(100) int maxPlayers) {}
-
Required Element Summary
Required Elements
-
Element Details
-
value
double value
-