Class RandomBooleanFeatureConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.RandomBooleanFeatureConfiguration.Builder
- Enclosing interface:
RandomBooleanFeatureConfiguration
Builder for
RandomBooleanFeatureConfiguration.- 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
@AsOf("3.0.0") public RandomBooleanFeatureConfiguration.Builder featureTrue(PlacedFeature 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
@AsOf("3.0.0") public RandomBooleanFeatureConfiguration.Builder featureFalse(PlacedFeature 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
RandomBooleanFeatureConfiguration - Since:
- 3.0.0
-