Class FindTopSurface.Builder
java.lang.Object
dev.wyck.worldgen.function.misc.FindTopSurface.Builder
- Enclosing interface:
FindTopSurface
Builder for
FindTopSurface.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the find top surface density function.cellHeight(int cellHeight) Sets the resolution of the scan.density(DensityFunction density) Sets the density function to scan.lowerBound(int lowerBound) Sets the Y-level to stop the scan at.resourceKey(ResourceKey resourceKey) Sets the resource key.upperBound(DensityFunction upperBound) Sets the Y-level to start the scan at.
-
Method Details
-
resourceKey
Sets the resource key.- Parameters:
resourceKey- the resource key- Returns:
- this builder
- Since:
- 3.0.0
-
density
Sets the density function to scan.- Parameters:
density- the density function to scan- Returns:
- this builder
- Since:
- 3.0.0
-
upperBound
Sets the Y-level to start the scan at.- Parameters:
upperBound- the upper bound density function- Returns:
- this builder
- Since:
- 3.0.0
-
lowerBound
Sets the Y-level to stop the scan at.- Parameters:
lowerBound- the lower bound- Returns:
- this builder
- Since:
- 3.0.0
-
cellHeight
Sets the resolution of the scan.- Parameters:
cellHeight- the cell height- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the find top surface density function.- Returns:
- the find top surface density function
- Since:
- 3.0.0
-