Interface WeightedRandomFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.1")
public interface WeightedRandomFeatureConfiguration
extends FeatureConfiguration
A technical feature that chooses a single feature from a weighted list, where a higher weight makes a
feature more likely to be chosen.
- Since:
- 3.0.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forWeightedRandomFeatureConfiguration. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.features()The weighted list of features to choose from.of(WeightedList<PlacedFeature> features) Creates a new weighted random feature configuration.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
features
The weighted list of features to choose from.- Returns:
- the weighted features
- Since:
- 3.0.1
-
toBuilder
Converts this object back to a builder.- Returns:
- a new builder with the same values as this object
- Since:
- 3.0.1
-
of
Creates a new weighted random feature configuration.- Parameters:
features- the weighted list of features to choose from- Returns:
- a new weighted random feature configuration
- Since:
- 3.0.1
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.1
-