Class HeightProvider.HeightProviderBuilder<T extends HeightProvider, S extends HeightProvider.HeightProviderBuilder<T,S>>

java.lang.Object
dev.wyck.worldgen.heightproviders.HeightProvider.HeightProviderBuilder<T,S>
Type Parameters:
T - the provider type
S - the builder type
Direct Known Subclasses:
BiasedToBottomHeight.Builder, TrapezoidHeight.Builder, UniformHeight.Builder, VeryBiasedToBottomHeight.Builder
Enclosing interface:
HeightProvider

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

  • Constructor Details

    • HeightProviderBuilder

      protected HeightProviderBuilder()
    • HeightProviderBuilder

      protected HeightProviderBuilder(VerticalAnchor minInclusive, VerticalAnchor maxInclusive)
  • Method Details

    • minInclusive

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

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

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

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

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