Class RandomBooleanSelectorFeature.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.RandomBooleanSelectorFeature.Builder
- Enclosing interface:
RandomBooleanSelectorFeature
Builder for
RandomBooleanSelectorFeature.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.featureFalse(PlacedFeature featureFalse) Sets the placed feature to use when the random boolean is false.featureTrue(PlacedFeature featureTrue) Sets the placed feature to use when the random boolean is true.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
featureTrue
Sets the placed feature to use when the random boolean is true.- Parameters:
featureTrue- the placed feature to use when the random boolean is true- Returns:
- this builder
- Since:
- 3.0.0
-
featureFalse
Sets the placed feature to use when the random boolean is false.- Parameters:
featureFalse- the placed feature to use when the random boolean is false- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- a new instance of
RandomBooleanSelectorFeature - Since:
- 3.0.0
-