Interface NoiseThresholdCountPlacement
- All Superinterfaces:
PlacementModifier, Wrapper
Returns multiple copies of the current block position. The count is either the below or above
value, chosen by comparing
noise(x / 200, z / 200) against the noise level: values
below the level use the below count, otherwise the above count is used.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forNoiseThresholdCountPlacement. -
Method Summary
Modifier and TypeMethodDescriptionintThe count when the noise is above the threshold.intThe count when the noise is below the threshold.builder()Creates a new builder.doubleThe threshold within the noise for when to use the below or above count.static NoiseThresholdCountPlacementof(double noiseLevel, int belowNoise, int aboveNoise) Creates a new noise threshold count placement.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
noiseLevel
The threshold within the noise for when to use the below or above count.- Returns:
- the noise level
- Since:
- 3.0.0
-
belowNoise
The count when the noise is below the threshold. A value lower than 0 is treated as 0.- Returns:
- the below noise count
- Since:
- 3.0.0
-
aboveNoise
The count when the noise is above the threshold. A value lower than 0 is treated as 0.- Returns:
- the above noise count
- Since:
- 3.0.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 NoiseThresholdCountPlacement of(double noiseLevel, int belowNoise, int aboveNoise) Creates a new noise threshold count placement.- Parameters:
noiseLevel- the threshold within the noise for when to use the below or above countbelowNoise- the count when the noise is below the thresholdaboveNoise- the count when the noise is above the threshold- Returns:
- a new noise threshold count placement
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-