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 typeS- 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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedHeightProviderBuilder(VerticalAnchor minInclusive, VerticalAnchor maxInclusive) -
Method Summary
Modifier and TypeMethodDescriptionabstract Tbuild()Builds the height provider.max(VerticalAnchor max) Sets the maximum anchor.maxInclusive(VerticalAnchor maxInclusive) Sets the maximum anchor.min(VerticalAnchor min) Sets the minimum anchor.minInclusive(VerticalAnchor minInclusive) Sets the minimum anchor.
-
Field Details
-
minInclusive
-
maxInclusive
-
-
Constructor Details
-
HeightProviderBuilder
protected HeightProviderBuilder() -
HeightProviderBuilder
-
-
Method Details
-
minInclusive
Sets the minimum anchor.- Parameters:
minInclusive- the minimum anchor- Returns:
- this builder
- Since:
- 3.0.0
-
maxInclusive
Sets the maximum anchor.- Parameters:
maxInclusive- the maximum anchor- Returns:
- this builder
- Since:
- 3.0.0
-
min
Sets the minimum anchor.- Parameters:
min- the minimum anchor- Returns:
- this builder
- Since:
- 3.0.0
-
max
Sets the maximum anchor.- Parameters:
max- the maximum anchor- Returns:
- this builder
- Since:
- 3.0.0
-
build
-