Interface PoplarTrunkPlacer

All Superinterfaces:
TrunkPlacer, Wrapper

@NullMarked @AsOf("4.0.0") public interface PoplarTrunkPlacer extends TrunkPlacer
Places a poplar trunk with horizontal branches near the top.
Since:
4.0.0
See Also:
  • Method Details

    • trunkHeightAboveBranches

      @AsOf("4.0.0") IntProvider trunkHeightAboveBranches()
      The number of trunk blocks above the branch layer.
      Returns:
      the trunk height above branches
      Since:
      4.0.0
    • branchAmount

      @AsOf("4.0.0") IntProvider branchAmount()
      The number of horizontal branches, between 1 and 4.
      Returns:
      the branch amount
      Since:
      4.0.0
    • toBuilder

      @AsOf("4.0.0") default PoplarTrunkPlacer.Builder 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 PoplarTrunkPlacer of(int baseHeight, int heightRandA, int heightRandB, IntProvider trunkHeightAboveBranches, IntProvider branchAmount)
      Creates a poplar trunk placer.
      Parameters:
      baseHeight - the base trunk height
      heightRandA - the first random height bound
      heightRandB - the second random height bound
      trunkHeightAboveBranches - the trunk height above branches, between 0 and 8
      branchAmount - the number of branches, between 1 and 4
      Returns:
      a new poplar trunk placer
      Since:
      4.0.0
    • builder

      @AsOf("4.0.0") static PoplarTrunkPlacer.Builder builder()
      Creates a new builder.
      Returns:
      a new poplar trunk placer builder
      Since:
      4.0.0