Interface FancyTrunkPlacer

All Superinterfaces:
TrunkPlacer, Wrapper

@NullMarked @AsOf("3.0.0") public interface FancyTrunkPlacer extends TrunkPlacer
Places a straight trunk of (height + 2) * 0.618 and branches in random directions. Foliage is attached to the end of all branches that are at least 20% up the tree.
Since:
3.0.0
See Also:
  • Method Details

    • toBuilder

      @AsOf("3.0.0") default FancyTrunkPlacer.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      the builder
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static FancyTrunkPlacer of(int baseHeight, int heightRandA, int heightRandB)
      Creates a new fancy trunk placer.
      Parameters:
      baseHeight - the height of the trunk
      heightRandA - the random height modifier
      heightRandB - the random height modifier
      Returns:
      a new fancy trunk placer
      Since:
      3.0.0
    • builder

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