Class StoneDepthConditionSource.Builder
java.lang.Object
dev.wyck.worldgen.surface.condition.StoneDepthConditionSource.Builder
- Enclosing interface:
StoneDepthConditionSource
Builder for
StoneDepthConditionSource.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionaddSurfaceDepth(boolean addSurfaceDepth) Sets whether the surface depth is added to the offset.build()Builds the stone depth condition source.offset(int offset) Sets the vertical offset.secondaryDepthRange(int secondaryDepthRange) Sets the secondary depth range added to the offset.surfaceType(CaveSurface surfaceType) Sets the face the depth is measured from.
-
Method Details
-
offset
Sets the vertical offset.- Parameters:
offset- the offset- Returns:
- this builder
- Since:
- 3.0.0
-
addSurfaceDepth
Sets whether the surface depth is added to the offset.- Parameters:
addSurfaceDepth- whether the surface depth is added- Returns:
- this builder
- Since:
- 3.0.0
-
secondaryDepthRange
@AsOf("3.0.0") public StoneDepthConditionSource.Builder secondaryDepthRange(int secondaryDepthRange) Sets the secondary depth range added to the offset.- Parameters:
secondaryDepthRange- the secondary depth range- Returns:
- this builder
- Since:
- 3.0.0
-
surfaceType
Sets the face the depth is measured from.- Parameters:
surfaceType- the surface type- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the stone depth condition source.- Returns:
- the stone depth condition source
- Since:
- 3.0.0
-