Interface TwoLayersFeatureSize
- All Superinterfaces:
FeatureSize, Wrapper
Specifies 2 different widths based on height. At heights lower than
limit(), lowerSize() is used,
otherwise upperSize().- 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 TypeMethodDescriptionstatic TwoLayersFeatureSize.Builderbuilder()Creates a new builder.intlimit()The limit between the lower and upper layer, between 0 and 81 (inclusive).intThe minimum width of the tree at heights underlimit(), between 0 and 16 (inclusive).static TwoLayersFeatureSizeCreates a new two-layer feature size.default TwoLayersFeatureSize.BuilderConverts this object back to a builder.intThe minimum width of the tree at heights greater than or equal tolimit(), between 0 and 16 (inclusive).Methods inherited from interface FeatureSize
minClippedHeightMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
limit
The limit between the lower and upper layer, between 0 and 81 (inclusive). Defaults to 1.- Returns:
- the limit
- Since:
- 3.0.0
-
lowerSize
-
upperSize
-
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 TwoLayersFeatureSize of(@Nullable Integer minClippedHeight, int limit, int lowerSize, int upperSize) Creates a new two-layer feature size.- Parameters:
minClippedHeight- the minimum free height required for the tree to generate, ornullto use the trunk heightlimit- the limit between the lower and upper layer, between 0 and 81 (inclusive)lowerSize- the minimum width of the tree at heights under the limit, between 0 and 16 (inclusive)upperSize- the minimum width of the tree at heights greater than or equal to the limit, between 0 and 16 (inclusive)- Returns:
- a new two-layer feature size
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-