Class YAboveConditionSource.Builder
java.lang.Object
dev.wyck.worldgen.surface.condition.YAboveConditionSource.Builder
- Enclosing interface:
YAboveConditionSource
Builder for
YAboveConditionSource.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionaddStoneDepth(boolean addStoneDepth) Sets whether the distance to the surface above is added to the offset.anchor(VerticalAnchor anchor) Sets the vertical anchor to compare the height with.build()Builds the y above condition source.surfaceDepthMultiplier(int surfaceDepthMultiplier) Sets how much the check is affected by the surface depth.
-
Method Details
-
anchor
Sets the vertical anchor to compare the height with.- Parameters:
anchor- the anchor- Returns:
- this builder
- Since:
- 3.0.0
-
surfaceDepthMultiplier
@AsOf("3.0.0") public YAboveConditionSource.Builder surfaceDepthMultiplier(int surfaceDepthMultiplier) Sets how much the check is affected by the surface depth.- Parameters:
surfaceDepthMultiplier- the surface depth multiplier- Returns:
- this builder
- Since:
- 3.0.0
-
addStoneDepth
Sets whether the distance to the surface above is added to the offset.- Parameters:
addStoneDepth- whether the stone depth is added- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the y above condition source.- Returns:
- the y above condition source
- Since:
- 3.0.0
-