Class WaterConditionSource.Builder
java.lang.Object
dev.wyck.worldgen.surface.condition.WaterConditionSource.Builder
- Enclosing interface:
WaterConditionSource
Builder for
WaterConditionSource.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionaddStoneDepth(boolean addStoneDepth) Sets whether the distance to the surface is added to the offset.build()Builds the water condition source.offset(int offset) Sets the value added to the water depth before the comparison.surfaceDepthMultiplier(int surfaceDepthMultiplier) Sets how much the check is affected by the surface depth.
-
Method Details
-
offset
Sets the value added to the water depth before the comparison.- Parameters:
offset- the offset- Returns:
- this builder
- Since:
- 3.0.0
-
surfaceDepthMultiplier
@AsOf("3.0.0") public WaterConditionSource.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 is added to the offset.- Parameters:
addStoneDepth- whether the stone depth is added- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the water condition source.- Returns:
- the water condition source
- Since:
- 3.0.0
-