Class TwoLayersFeatureSize.Builder
java.lang.Object
dev.wyck.worldgen.feature.featuresize.FeatureSize.FeatureSizeBuilder<TwoLayersFeatureSize.Builder, TwoLayersFeatureSize>
dev.wyck.worldgen.feature.featuresize.TwoLayersFeatureSize.Builder
- Enclosing interface:
TwoLayersFeatureSize
@AsOf("3.0.0")
public static final class TwoLayersFeatureSize.Builder
extends FeatureSize.FeatureSizeBuilder<TwoLayersFeatureSize.Builder, TwoLayersFeatureSize>
Builder for
TwoLayersFeatureSize.- Since:
- 3.0.0
-
Field Summary
Fields inherited from class FeatureSize.FeatureSizeBuilder
minClippedHeight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TwoLayersFeatureSizecreate()limit(int limit) Sets the limit between the lower and upper layer, between 0 and 81 (inclusive).lowerSize(int lowerSize) Sets the minimum width of the tree at heights under the limit, between 0 and 16 (inclusive).upperSize(int upperSize) Sets the minimum width of the tree at heights greater than or equal to the limit, between 0 and 16 (inclusive).Methods inherited from class FeatureSize.FeatureSizeBuilder
build, minClippedHeight
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
limit
Sets the limit between the lower and upper layer, between 0 and 81 (inclusive).- Parameters:
limit- the limit- Returns:
- this builder
- Since:
- 3.0.0
-
lowerSize
Sets the minimum width of the tree at heights under the limit, between 0 and 16 (inclusive).- Parameters:
lowerSize- the lower size- Returns:
- this builder
- Since:
- 3.0.0
-
upperSize
Sets the minimum width of the tree at heights greater than or equal to the limit, between 0 and 16 (inclusive).- Parameters:
upperSize- the upper size- Returns:
- this builder
- Since:
- 3.0.0
-
create
- Specified by:
createin classFeatureSize.FeatureSizeBuilder<TwoLayersFeatureSize.Builder, TwoLayersFeatureSize>
-