Class NoiseThresholdConditionSource.Builder
java.lang.Object
dev.wyck.worldgen.surface.condition.NoiseThresholdConditionSource.Builder
- Enclosing interface:
NoiseThresholdConditionSource
Builder for
NoiseThresholdConditionSource.- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the noise threshold condition source.is3d(boolean is3d) Sets whether this condition samples three-dimensional noise.maxThreshold(double maxThreshold) Sets the maximum noise value where the condition passes.minThreshold(double minThreshold) Sets the minimum noise value where the condition passes.noise(ResourceKey noise) Sets the key of the noise to sample.
-
Method Details
-
noise
Sets the key of the noise to sample.- Parameters:
noise- the noise key- Returns:
- this builder
- Since:
- 3.0.0
-
minThreshold
Sets the minimum noise value where the condition passes.- Parameters:
minThreshold- the minimum threshold- Returns:
- this builder
- Since:
- 3.0.0
-
maxThreshold
Sets the maximum noise value where the condition passes.- Parameters:
maxThreshold- the maximum threshold- Returns:
- this builder
- Since:
- 3.0.0
-
is3d
Sets whether this condition samples three-dimensional noise.- Parameters:
is3d- whether to sample three-dimensional noise- Returns:
- this builder
- Since:
- 3.3.0
-
build
Builds the noise threshold condition source.- Returns:
- the noise threshold condition source
- Since:
- 3.0.0
-