Interface PoplarFoliagePlacer
- All Superinterfaces:
FoliagePlacer, Wrapper
Places the tall, tapered foliage used by poplar trees.
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface FoliagePlacer
FoliagePlacer.FoliagePlacerBuilder<T,P> -
Method Summary
Modifier and TypeMethodDescriptionstatic PoplarFoliagePlacer.Builderbuilder()Creates a new builder.height()The foliage height, between 5 and 16 blocks.static PoplarFoliagePlacerof(IntProvider radius, IntProvider offset, IntProvider height, float sideHoleChance) Creates a poplar foliage placer.floatThe chance that an eligible side position is left empty.default PoplarFoliagePlacer.BuilderConverts this object back to a builder.Methods inherited from interface FoliagePlacer
offset, radiusMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
height
The foliage height, between 5 and 16 blocks.- Returns:
- the foliage height
- Since:
- 4.0.0
-
sideHoleChance
The chance that an eligible side position is left empty.- Returns:
- the side-hole chance
- Since:
- 4.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder containing the same values
- Since:
- 4.0.0
-
of
@AsOf("4.0.0") static PoplarFoliagePlacer of(IntProvider radius, IntProvider offset, IntProvider height, float sideHoleChance) Creates a poplar foliage placer.- Parameters:
radius- the foliage radiusoffset- the vertical foliage offsetheight- the foliage height, between 5 and 16 blockssideHoleChance- the side-hole chance, between 0 and 1- Returns:
- a new poplar foliage placer
- Since:
- 4.0.0
-
builder
Creates a new builder.- Returns:
- a new poplar foliage placer builder
- Since:
- 4.0.0
-