Class SurfaceRelativeThresholdFilter.Builder
java.lang.Object
dev.wyck.worldgen.placement.SurfaceRelativeThresholdFilter.Builder
- Enclosing interface:
SurfaceRelativeThresholdFilter
Builder for
SurfaceRelativeThresholdFilter.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the surface relative threshold filter.heightmap(HeightmapType heightmap) Sets the heightmap.maxInclusive(int maxInclusive) Sets the maximum inclusive relative height.minInclusive(int minInclusive) Sets the minimum inclusive relative height.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
heightmap
Sets the heightmap.- Parameters:
heightmap- the heightmap to measure the surface against- Returns:
- this builder
- Since:
- 3.0.0
-
minInclusive
Sets the minimum inclusive relative height.- Parameters:
minInclusive- the minimum relative height from the surface to the current position- Returns:
- this builder
- Since:
- 3.0.0
-
maxInclusive
Sets the maximum inclusive relative height.- Parameters:
maxInclusive- the maximum relative height from the surface to the current position- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the surface relative threshold filter.- Returns:
- the surface relative threshold filter
- Since:
- 3.0.0
-