Interface TemplateFeature
- All Superinterfaces:
FeatureConfiguration, Wrapper
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 forTemplateFeature.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 TypeMethodDescriptionstatic TemplateFeature.Builderbuilder()Creates a new builder.static TemplateFeatureof(WeightedList<TemplateFeature.TemplateEntry> templates) Creates a new template feature configuration.The weighted list of templates to choose from.default TemplateFeature.BuilderConverts 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
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
-