Interface ComposedConfiguredFeature
- All Superinterfaces:
ConfiguredFeature, Keyed, Registerable<ComposedConfiguredFeature>, Wrapper
@NullMarked
@AsOf("3.0.0")
public interface ComposedConfiguredFeature
extends ConfiguredFeature, Registerable<ComposedConfiguredFeature>
A configured feature composed of a built-in
FeatureType algorithm and a matching
FeatureConfiguration.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.config()The configuration applied to thefeature type.static ComposedConfiguredFeatureof(@Nullable ResourceKey key, FeatureType type, FeatureConfiguration config) Creates a new composed configured feature.static ComposedConfiguredFeatureof(FeatureType type, FeatureConfiguration config) Creates a new composed configured feature without a resource key.Converts this composed configured feature to a builder.type()The built-in feature type algorithm this configured feature composes.Methods inherited from interface ConfiguredFeature
resourceKey, wrapMethods inherited from interface Registerable
registerMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
type
The built-in feature type algorithm this configured feature composes.- Returns:
- the feature type
- Since:
- 3.0.0
-
config
The configuration applied to thefeature type.- Returns:
- the feature configuration
- Since:
- 3.0.0
-
toBuilder
Converts this composed configured feature to a builder.- Returns:
- a builder with the same values as this composed configured feature
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static ComposedConfiguredFeature of(@Nullable ResourceKey key, FeatureType type, FeatureConfiguration config) Creates a new composed configured feature.- Parameters:
key- the resource key of the configured feature, or null if not presenttype- the built-in feature typeconfig- the configuration for the feature type- Returns:
- a new composed configured feature
- Since:
- 3.0.0
-
of
Creates a new composed configured feature without a resource key.- Parameters:
type- the built-in feature typeconfig- the configuration for the feature type- Returns:
- a new composed configured feature
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-