Interface RandomBooleanFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.0")
public interface RandomBooleanFeatureConfiguration
extends FeatureConfiguration
A configuration for a random boolean feature.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forRandomBooleanFeatureConfiguration. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.Gets the placed feature to use when the random boolean is false.Gets the placed feature to use when the random boolean is true.of(PlacedFeature featureTrue, PlacedFeature featureFalse) Creates a new instance of this configuration.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
featureTrue
Gets the placed feature to use when the random boolean is true.- Returns:
- the placed feature to use when the random boolean is true
- Since:
- 3.0.0
-
featureFalse
Gets the placed feature to use when the random boolean is false.- Returns:
- the placed feature to use when the random boolean is false
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a new builder with the same values as this configuration
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static RandomBooleanFeatureConfiguration of(PlacedFeature featureTrue, PlacedFeature featureFalse) Creates a new instance of this configuration.- Parameters:
featureTrue- the placed feature to use when the random boolean is truefeatureFalse- the placed feature to use when the random boolean is false- Returns:
- a new instance of this configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-