Skip to content

Trunk Placers

The TrunkPlacer determines the shape trunk of the tree. All trunk placers have a base height and a random height modifier of both A and B allowing each tree placer to stretch and shrink the length of a tree at random.

Examples.java Java
// Places a straight trunk with a base height of 10,
// a random height modifier of 4 and 8.
TrunkPlacer.straight()
  .baseHeight(10)
  .heightRandA(4)
  .heightRandB(8)
  .build();