Class NumberConfigOption<T extends Number & Comparable<T>>
java.lang.Object
com.binaris.wizardry.core.config.option.ConfigOption<T>
com.binaris.wizardry.core.config.option.NumberConfigOption<T>
-
Field Summary
FieldsFields inherited from class com.binaris.wizardry.core.config.option.ConfigOption
translationDescriptionKey, translationNameKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigOption<Double>doublePrecision(String key, double defaultValue, double minValue, double maxValue) static ConfigOption<Float>static ConfigOption<Integer>Methods inherited from class com.binaris.wizardry.core.config.option.ConfigOption
get, getCodec, getDefault, getKey, getRawDescription, getRawName, getType, set
-
Field Details
-
minValue
-
maxValue
-
-
Constructor Details
-
NumberConfigOption
-
-
Method Details
-
integer
public static ConfigOption<Integer> integer(String key, int defaultValue, int minValue, int maxValue) -
floating
public static ConfigOption<Float> floating(String key, float defaultValue, float minValue, float maxValue) -
doublePrecision
public static ConfigOption<Double> doublePrecision(String key, double defaultValue, double minValue, double maxValue) -
validate
- Specified by:
validatein classConfigOption<T extends Number & Comparable<T>>
-
getMinValue
-
getMaxValue
-