Class VerticalGradientConditionSource.Builder
java.lang.Object
dev.wyck.worldgen.surface.condition.VerticalGradientConditionSource.Builder
- Enclosing interface:
VerticalGradientConditionSource
Builder for
VerticalGradientConditionSource.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the vertical gradient condition source.falseAtAndAbove(VerticalAnchor falseAtAndAbove) Sets the anchor at and above which the condition fails.randomName(String randomName) Sets the seed used to randomize the gradient.trueAtAndBelow(VerticalAnchor trueAtAndBelow) Sets the anchor at and below which the condition passes.
-
Method Details
-
randomName
Sets the seed used to randomize the gradient.- Parameters:
randomName- the random name- Returns:
- this builder
- Since:
- 3.0.0
-
trueAtAndBelow
@AsOf("3.0.0") public VerticalGradientConditionSource.Builder trueAtAndBelow(VerticalAnchor trueAtAndBelow) Sets the anchor at and below which the condition passes.- Parameters:
trueAtAndBelow- the lower anchor- Returns:
- this builder
- Since:
- 3.0.0
-
falseAtAndAbove
@AsOf("3.0.0") public VerticalGradientConditionSource.Builder falseAtAndAbove(VerticalAnchor falseAtAndAbove) Sets the anchor at and above which the condition fails.- Parameters:
falseAtAndAbove- the upper anchor- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the vertical gradient condition source.- Returns:
- the vertical gradient condition source
- Since:
- 3.0.0
-