Interface SpruceFoliagePlacer

All Superinterfaces:
FoliagePlacer, Wrapper

@NullMarked @AsOf("3.0.0") public interface SpruceFoliagePlacer extends FoliagePlacer
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:
  • Method Details

    • trunkHeight

      @AsOf("3.0.0") IntProvider trunkHeight()
      The trunk height, between 0 and 24 (inclusive).
      Returns:
      the trunk height
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default SpruceFoliagePlacer.Builder 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 foliage
      offset - the vertical offset from the top of the trunk to the top of the foliage
      trunkHeight - the trunk height, between 0 and 24 (inclusive)
      Returns:
      a new spruce foliage placer
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static SpruceFoliagePlacer.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0