Interface CompositeFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.0")
public interface CompositeFeatureConfiguration
extends FeatureConfiguration
A technical feature that randomly chooses a feature from a list with each having an equal chance.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forCompositeFeatureConfiguration. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.features()Any number of placed features.of(List<PlacedFeature> features) Creates a new simple random feature configuration.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
features
Any number of placed features. This cannot be empty.- Returns:
- the list of features
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a new builder with the same values as this object
- Since:
- 3.0.0
-
of
Creates a new simple random feature configuration.- Parameters:
features- the list of features- Returns:
- a new simple random feature configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-