Interface SequenceFeature
- All Superinterfaces:
FeatureConfiguration, Wrapper
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 Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic SequenceFeature.Builderbuilder()Creates a new builder.features()Any number of placed features.static SequenceFeatureof(List<PlacedFeature> features) Creates a new simple random feature configuration.default SequenceFeature.BuilderConverts 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
-