Class ThreeLayersFeatureSize.Builder
java.lang.Object
dev.wyck.worldgen.feature.featuresize.FeatureSize.FeatureSizeBuilder<ThreeLayersFeatureSize.Builder, ThreeLayersFeatureSize>
dev.wyck.worldgen.feature.featuresize.ThreeLayersFeatureSize.Builder
- Enclosing interface:
ThreeLayersFeatureSize
@AsOf("3.0.0")
public static final class ThreeLayersFeatureSize.Builder
extends FeatureSize.FeatureSizeBuilder<ThreeLayersFeatureSize.Builder, ThreeLayersFeatureSize>
Builder for
ThreeLayersFeatureSize.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class FeatureSize.FeatureSizeBuilder
minClippedHeight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ThreeLayersFeatureSizecreate()limit(int limit) Sets the height of the lower layer, calculated from the bottom of the trunk, between 0 and 80 (inclusive).lowerSize(int lowerSize) Sets the minimum width of the tree in the bottom layer, between 0 and 16 (inclusive).middleSize(int middleSize) Sets the minimum width of the tree at the middle layer, between 0 and 16 (inclusive).upperLimit(int upperLimit) Sets the height of the upper layer, calculated from the top of the trunk, between 0 and 80 (inclusive).upperSize(int upperSize) Sets the minimum width of the tree in the upper layer, between 0 and 16 (inclusive).Methods inherited from class FeatureSize.FeatureSizeBuilder
build, minClippedHeight
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
limit
Sets the height of the lower layer, calculated from the bottom of the trunk, between 0 and 80 (inclusive).- Parameters:
limit- the limit- Returns:
- this builder
- Since:
- 3.0.0
-
upperLimit
Sets the height of the upper layer, calculated from the top of the trunk, between 0 and 80 (inclusive).- Parameters:
upperLimit- the upper limit- Returns:
- this builder
- Since:
- 3.0.0
-
lowerSize
Sets the minimum width of the tree in the bottom layer, between 0 and 16 (inclusive).- Parameters:
lowerSize- the lower size- Returns:
- this builder
- Since:
- 3.0.0
-
middleSize
Sets the minimum width of the tree at the middle layer, between 0 and 16 (inclusive).- Parameters:
middleSize- the middle size- Returns:
- this builder
- Since:
- 3.0.0
-
upperSize
Sets the minimum width of the tree in the upper layer, between 0 and 16 (inclusive).- Parameters:
upperSize- the upper size- Returns:
- this builder
- Since:
- 3.0.0
-
create
- Specified by:
createin classFeatureSize.FeatureSizeBuilder<ThreeLayersFeatureSize.Builder, ThreeLayersFeatureSize>
-