Interface NoiseBasedCountPlacement
- All Superinterfaces:
PlacementModifier, Wrapper
When the noise value at the current position is positive, returns multiple copies of the current
block position, whose count is based on the noise value. When the noise value is negative or zero,
returns empty. The count is calculated as
ceil((noise(x / noiseFactor, z / noiseFactor) + noiseOffset) * noiseToCountRatio).- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.doubleScales the noise input horizontally.doubleVertical offset of the noise.intRatio of noise value to count.static NoiseBasedCountPlacementof(int noiseToCountRatio, double noiseFactor, double noiseOffset) Creates a new noise based count placement.default NoiseBasedCountPlacement.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
noiseToCountRatio
Ratio of noise value to count.- Returns:
- the noise to count ratio
- Since:
- 3.0.0
-
noiseFactor
Scales the noise input horizontally. Higher values make for wider and more spaced out peaks.- Returns:
- the noise factor
- Since:
- 3.0.0
-
noiseOffset
Vertical offset of the noise.- Returns:
- the noise offset
- 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 NoiseBasedCountPlacement of(int noiseToCountRatio, double noiseFactor, double noiseOffset) Creates a new noise based count placement.- Parameters:
noiseToCountRatio- ratio of noise value to countnoiseFactor- scales the noise input horizontallynoiseOffset- vertical offset of the noise- Returns:
- a new noise based count placement
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-