Interface FeatureSize

All Superinterfaces:
Wrapper
All Known Subinterfaces:
ThreeLayersFeatureSize, TwoLayersFeatureSize

@NullMarked @AsOf("3.0.0") public interface FeatureSize extends Wrapper
Determines how much space needs to be available for the tree to be able to place. This is done by checking a square area of varying widths at each vertical position of the tree. The available free height is calculated as the height until all squares are free.
Since:
3.0.0
See Also:
  • Method Details

    • minClippedHeight

      @AsOf("3.0.0") OptionalInt minClippedHeight()
      If specified and lower than the trunk height, specifies the minimum free height required for the tree to generate. Otherwise, the trunk height is used instead. This value must be between 0 and 80.
      Returns:
      the minimum free height
      Since:
      3.0.0
    • twoLayers

      @AsOf("3.0.0") static TwoLayersFeatureSize.Builder twoLayers()
      Creates a new two-layer feature size builder.
      Returns:
      a new two-layer feature size builder
      Since:
      3.0.0
    • threeLayers

      @AsOf("3.0.0") static ThreeLayersFeatureSize.Builder threeLayers()
      Creates a new three-layer feature size builder.
      Returns:
      a new three-layer feature size builder
      Since:
      3.0.0
    • decode

      @Internal static FeatureSize decode(Object minecraftFeatureSize)