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
    Modifier and Type
    Required Element
    Description
    double
     
  • Element Details

    • value

      double value