Class NoiseRouter.Builder
java.lang.Object
dev.wyck.worldgen.noise.NoiseRouter.Builder
- Enclosing interface:
NoiseRouter
Builder for
NoiseRouter.- Since:
- 2.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(NoiseRouter router) Creates a builder containing the values of an existing noise router. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the noise router.chunkSurfaceLevel(DensityFunction chunkSurfaceLevel) Sets the chunk surface-level density function.continents(DensityFunction continents) Sets the continentalness density function.depth(DensityFunction depth) Sets the depth density function.erosion(DensityFunction erosion) Sets the erosion density function.finalDensity(DensityFunction finalDensity) Sets the final terrain density function.ridges(DensityFunction ridges) Sets the ridges density function.temperature(DensityFunction temperature) Sets the temperature density function.vegetation(DensityFunction vegetation) Sets the vegetation density function.
-
Constructor Details
-
Builder
public Builder() -
Builder
Creates a builder containing the values of an existing noise router.- Parameters:
router- the noise router to copy- Since:
- 3.0.0
-
-
Method Details
-
temperature
Sets the temperature density function.- Parameters:
temperature- the temperature density function- Returns:
- this builder
- Since:
- 2.4.0
-
vegetation
Sets the vegetation density function.- Parameters:
vegetation- the vegetation density function- Returns:
- this builder
- Since:
- 2.4.0
-
continents
Sets the continentalness density function.- Parameters:
continents- the continentalness density function- Returns:
- this builder
- Since:
- 2.4.0
-
erosion
Sets the erosion density function.- Parameters:
erosion- the erosion density function- Returns:
- this builder
- Since:
- 2.4.0
-
depth
Sets the depth density function.- Parameters:
depth- the depth density function- Returns:
- this builder
- Since:
- 2.4.0
-
ridges
Sets the ridges density function.- Parameters:
ridges- the ridges density function- Returns:
- this builder
- Since:
- 2.4.0
-
chunkSurfaceLevel
Sets the chunk surface-level density function.- Parameters:
chunkSurfaceLevel- the chunk surface-level density function- Returns:
- this builder
- Since:
- 4.0.0
-
finalDensity
Sets the final terrain density function.- Parameters:
finalDensity- the final terrain density function- Returns:
- this builder
- Since:
- 2.4.0
-
build
Builds the noise router.- Returns:
- the noise router
- Since:
- 2.4.0
-