Interface ThreeLayersFeatureSize
- All Superinterfaces:
FeatureSize, Wrapper
Specifies 3 different widths based on height. At heights lower than
limit(), the minimum width is
lowerSize(); at the topmost upperLimit() blocks of the trunk upperSize() is used;
otherwise middleSize() is used.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface FeatureSize
FeatureSize.FeatureSizeBuilder<T,P> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.intlimit()The height of the lower layer, calculated from the bottom of the trunk, between 0 and 80 (inclusive).intThe minimum width of the tree in the bottom layer (i.e.intThe minimum width of the tree at the middle layer (i.e., between the bottom and top layers), between 0 and 16 (inclusive).static ThreeLayersFeatureSizeof(@Nullable Integer minClippedHeight, int limit, int upperLimit, int lowerSize, int middleSize, int upperSize) Creates a new three-layer feature size.default ThreeLayersFeatureSize.BuilderConverts this object back to a builder.intThe height of the upper layer, calculated from the top of the trunk, between 0 and 80 (inclusive).intThe minimum width of the tree in the upper layer (i.e., the topmostupperLimit()blocks of the trunk), between 0 and 16 (inclusive).Methods inherited from interface FeatureSize
minClippedHeightMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
limit
The height of the lower layer, calculated from the bottom of the trunk, between 0 and 80 (inclusive). Defaults to 1.- Returns:
- the limit
- Since:
- 3.0.0
-
upperLimit
The height of the upper layer, calculated from the top of the trunk, between 0 and 80 (inclusive). Defaults to 1.- Returns:
- the upper limit
- Since:
- 3.0.0
-
lowerSize
-
middleSize
The minimum width of the tree at the middle layer (i.e., between the bottom and top layers), between 0 and 16 (inclusive). Defaults to 1.- Returns:
- the middle size
- Since:
- 3.0.0
-
upperSize
The minimum width of the tree in the upper layer (i.e., the topmostupperLimit()blocks of the trunk), between 0 and 16 (inclusive). Defaults to 1.- Returns:
- the upper size
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ThreeLayersFeatureSize of(@Nullable Integer minClippedHeight, int limit, int upperLimit, int lowerSize, int middleSize, int upperSize) Creates a new three-layer feature size.- Parameters:
minClippedHeight- the minimum free height required for the tree to generate, ornullto use the trunk heightlimit- the height of the lower layer, calculated from the bottom of the trunk, between 0 and 80 (inclusive)upperLimit- the height of the upper layer, calculated from the top of the trunk, between 0 and 80 (inclusive)lowerSize- the minimum width of the tree in the bottom layer, between 0 and 16 (inclusive)middleSize- the minimum width of the tree at the middle layer, between 0 and 16 (inclusive)upperSize- the minimum width of the tree in the upper layer, between 0 and 16 (inclusive)- Returns:
- a new three-layer feature size
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-