Interface FeatureSize
- All Superinterfaces:
Wrapper
- All Known Subinterfaces:
ThreeLayersFeatureSize, TwoLayersFeatureSize
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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBase class for feature size builders. -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureSizeIf specified and lower than the trunk height, specifies the minimum free height required for the tree to generate.Creates a new three-layer feature size builder.static TwoLayersFeatureSize.BuilderCreates a new two-layer feature size builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
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
Creates a new two-layer feature size builder.- Returns:
- a new two-layer feature size builder
- Since:
- 3.0.0
-
threeLayers
Creates a new three-layer feature size builder.- Returns:
- a new three-layer feature size builder
- Since:
- 3.0.0
-
decode
-