Class FloatProvider.FloatProviderBuilder<T extends FloatProvider, S extends FloatProvider.FloatProviderBuilder<T,S>>

java.lang.Object
dev.wyck.worldgen.valueproviders.FloatProvider.FloatProviderBuilder<T,S>
Type Parameters:
T - the provider type
S - the builder type
Direct Known Subclasses:
ClampedNormalFloat.Builder, TrapezoidFloat.Builder
Enclosing interface:
FloatProvider

@AsOf("3.0.0") public abstract static class FloatProvider.FloatProviderBuilder<T extends FloatProvider, S extends FloatProvider.FloatProviderBuilder<T,S>> extends Object
Common abstract builder for float providers with inclusive bounds.
Since:
3.0.0
  • Field Details

    • minInclusive

      protected float minInclusive
    • maxInclusive

      protected float maxInclusive
  • Constructor Details

    • FloatProviderBuilder

      protected FloatProviderBuilder()
    • FloatProviderBuilder

      protected FloatProviderBuilder(FloatProvider provider)
  • Method Details

    • minInclusive

      @AsOf("3.0.0") public S minInclusive(float minInclusive)
      Sets the minimum allowed value.
      Parameters:
      minInclusive - the minimum allowed value
      Returns:
      this builder
      Since:
      3.0.0
    • maxInclusive

      @AsOf("3.0.0") public S maxInclusive(float maxInclusive)
      Sets the maximum allowed value.
      Parameters:
      maxInclusive - the maximum allowed value
      Returns:
      this builder
      Since:
      3.0.0
    • min

      @AsOf("3.0.0") public S min(float min)
      Sets the minimum allowed value.
      Parameters:
      min - the minimum allowed value
      Returns:
      this builder
      Since:
      3.0.0
    • max

      @AsOf("3.0.0") public S max(float max)
      Sets the maximum allowed value.
      Parameters:
      max - the maximum allowed value
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public abstract T build()
      Builds the provider.
      Returns:
      the built provider
      Since:
      3.0.0