Interface NumericPropertyBuilder<SELF extends NumericPropertyBuilder<SELF,T>,T extends Number>
- All Superinterfaces:
PropertyBuilder<SELF,
T>
- All Known Subinterfaces:
DoublePropertyBuilder
,IntPropertyBuilder
- All Known Implementing Classes:
DoublePropertyBuilderImpl
,IntPropertyBuilderImpl
,NumericPropertyBuilderImpl
public interface NumericPropertyBuilder<SELF extends NumericPropertyBuilder<SELF,T>,T extends Number>
extends PropertyBuilder<SELF,T>
-
Method Summary
Methods inherited from interface net.replaceitem.reconfigure.api.property.PropertyBuilder
addValidator, asCustomWidget, defaultValue
-
Method Details
-
min
Sets the minimum value for the numeric property (inclusive).- Parameters:
min
- The minimum value for the property (inclusive)- Returns:
- The builder for chaining
-
max
Sets the maximum value for the numeric property (inclusive).- Parameters:
max
- The maximum value for the property (inclusive)- Returns:
- The builder for chaining
-
range
Sets the minimum and maximum values for the numeric property (inclusive).- Parameters:
min
- The minimum value for the property (inclusive)max
- The maximum value for the property (inclusive)- Returns:
- The builder for chaining
-