Interface NoiseThresholdConditionSource
- All Superinterfaces:
ConditionSource, SurfaceRule, Wrapper
Computes the noise value of the current column using a specified noise and checks if it is between
the min and max threshold.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forNoiseThresholdConditionSource. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.booleanis3d()Whether this condition samples three-dimensional noise.doubleThe maximum noise value where the condition passes.doubleThe minimum noise value where the condition passes.noise()The key of the noise to sample.of(ResourceKey noise, double minThreshold) Creates a new noise threshold condition source with no upper bound.of(ResourceKey noise, double minThreshold, double maxThreshold) Creates a new noise threshold condition source.of(ResourceKey noise, double minThreshold, double maxThreshold, boolean is3d) Creates a noise threshold condition with an explicit sampling dimensionality.Converts this object back to a builder.Methods inherited from interface ConditionSource
not, thenMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
noise
The key of the noise to sample.- Returns:
- the noise key
- Since:
- 3.0.0
-
minThreshold
The minimum noise value where the condition passes.- Returns:
- the minimum threshold
- Since:
- 3.0.0
-
maxThreshold
The maximum noise value where the condition passes.- Returns:
- the maximum threshold
- Since:
- 3.0.0
-
is3d
Whether this condition samples three-dimensional noise.- Returns:
- whether three-dimensional noise is sampled
- Since:
- 3.3.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static NoiseThresholdConditionSource of(ResourceKey noise, double minThreshold, double maxThreshold) Creates a new noise threshold condition source.- Parameters:
noise- the key of the noise to sampleminThreshold- the minimum noise value where the condition passesmaxThreshold- the maximum noise value where the condition passes- Returns:
- the noise threshold condition source
- Since:
- 3.0.0
-
of
@AsOf("3.3.0") static NoiseThresholdConditionSource of(ResourceKey noise, double minThreshold, double maxThreshold, boolean is3d) Creates a noise threshold condition with an explicit sampling dimensionality.- Parameters:
noise- the noise parameters to sampleminThreshold- the inclusive minimum thresholdmaxThreshold- the inclusive maximum thresholdis3d- whether to sample three-dimensional noise- Returns:
- a new noise threshold condition
- Since:
- 3.3.0
-
of
Creates a new noise threshold condition source with no upper bound.- Parameters:
noise- the key of the noise to sampleminThreshold- the minimum noise value where the condition passes- Returns:
- the noise threshold condition source
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-