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

    Modifier and Type
    Method
    Description
    max(T max)
    Sets the maximum value for the numeric property (inclusive).
    min(T min)
    Sets the minimum value for the numeric property (inclusive).
    range(T min, T max)
    Sets the minimum and maximum values for the numeric property (inclusive).

    Methods inherited from interface net.replaceitem.reconfigure.api.property.PropertyBuilder

    addValidator, asCustomWidget, defaultValue
  • Method Details

    • min

      SELF min(T 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

      SELF max(T 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

      SELF range(T min, T max)
      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