Interface RandomSpreadFoliagePlacer
- All Superinterfaces:
FoliagePlacer, Wrapper
Randomly spreads foliage within the given radius and height, used by trees such as the mangrove.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface FoliagePlacer
FoliagePlacer.FoliagePlacerBuilder<T,P> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.The foliage's height, between 1 and 512 (inclusive).intThe number of leaf placement attempts, between 0 and 256 (inclusive).static RandomSpreadFoliagePlacerof(IntProvider radius, IntProvider offset, IntProvider foliageHeight, int leafPlacementAttempts) Creates a new random spread foliage placer.Converts this object back to a builder.Methods inherited from interface FoliagePlacer
offset, radiusMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
foliageHeight
The foliage's height, between 1 and 512 (inclusive).- Returns:
- the foliage height
- Since:
- 3.0.0
-
leafPlacementAttempts
The number of leaf placement attempts, between 0 and 256 (inclusive).- Returns:
- the number of leaf placement attempts
- 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 RandomSpreadFoliagePlacer of(IntProvider radius, IntProvider offset, IntProvider foliageHeight, int leafPlacementAttempts) Creates a new random spread foliage placer.- Parameters:
radius- the radius of the foliageoffset- the vertical offset from the top of the trunk to the top of the foliagefoliageHeight- the foliage's height, between 1 and 512 (inclusive)leafPlacementAttempts- the number of leaf placement attempts, between 0 and 256 (inclusive)- Returns:
- a new random spread foliage placer
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-