Interface SpruceFoliagePlacer
- All Superinterfaces:
FoliagePlacer, Wrapper
Places cones starting from the top of the trunk plus the offset, with a radius that increases until it hits a
maximum radius, where it keeps generating frustums at maximum radius until the foliage is
trunkHeight() + 1 tall.- 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 TypeMethodDescriptionstatic SpruceFoliagePlacer.Builderbuilder()Creates a new builder.static SpruceFoliagePlacerof(IntProvider radius, IntProvider offset, IntProvider trunkHeight) Creates a new spruce foliage placer.default SpruceFoliagePlacer.BuilderConverts this object back to a builder.The trunk height, between 0 and 24 (inclusive).Methods inherited from interface FoliagePlacer
offset, radiusMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
trunkHeight
The trunk height, between 0 and 24 (inclusive).- Returns:
- the trunk height
- 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 SpruceFoliagePlacer of(IntProvider radius, IntProvider offset, IntProvider trunkHeight) Creates a new spruce foliage placer.- Parameters:
radius- the radius of the foliageoffset- the vertical offset from the top of the trunk to the top of the foliagetrunkHeight- the trunk height, between 0 and 24 (inclusive)- Returns:
- a new spruce foliage placer
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-