Interface TemplateFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
@NullMarked
@AsOf("3.0.1")
public interface TemplateFeatureConfiguration
extends FeatureConfiguration
A feature that places a structure template chosen from a weighted list, each template optionally allowing
a set of rotations.
- Since:
- 3.0.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forTemplateFeatureConfiguration.static final recordA single template entry: a structure template and the rotations it is allowed to be placed with. -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static TemplateFeatureConfigurationof(WeightedList<TemplateFeatureConfiguration.TemplateEntry> templates) Creates a new template feature configuration.The weighted list of templates to choose from.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
templates
The weighted list of templates to choose from.- Returns:
- the weighted templates
- 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
@AsOf("3.0.1") static TemplateFeatureConfiguration of(WeightedList<TemplateFeatureConfiguration.TemplateEntry> templates) Creates a new template feature configuration.- Parameters:
templates- the weighted list of templates to choose from- Returns:
- a new template feature configuration
- Since:
- 3.0.1
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.1
-