Class IntProvider.IntProviderBuilder<T extends IntProvider, S extends IntProvider.IntProviderBuilder<T,S>>

java.lang.Object
dev.wyck.worldgen.valueproviders.IntProvider.IntProviderBuilder<T,S>
Type Parameters:
T - the provider type
S - the builder type
Direct Known Subclasses:
BiasedToBottomInt.Builder, ClampedInt.Builder, ClampedNormalInt.Builder, TrapezoidInt.Builder, UniformInt.Builder
Enclosing interface:
IntProvider

@AsOf("3.0.0") public abstract static class IntProvider.IntProviderBuilder<T extends IntProvider, S extends IntProvider.IntProviderBuilder<T,S>> extends Object
Common abstract builder for most int providers.
Since:
3.0.0
  • Field Details

    • minInclusive

      protected int minInclusive
    • maxInclusive

      protected int maxInclusive
  • Constructor Details

    • IntProviderBuilder

      protected IntProviderBuilder()
    • IntProviderBuilder

      protected IntProviderBuilder(IntProvider provider)
  • Method Details

    • minInclusive

      @AsOf("3.0.0") public S minInclusive(int 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(int 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(int 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(int 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 int provider.
      Returns:
      the int provider
      Since:
      3.0.0