Interface Feature
- All Known Subinterfaces:
ComposedFeature, CustomComposedFeature<C>, ReferencedFeature
A direct Minecraft feature or a reference to one already registered.
Features are added to biomes through placed features.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComposedFeature.Buildercomposed()Authors a feature from a vanilla feature type and its direct feature settings.static <C> CustomComposedFeature.Builder<C> custom()Composes a registered custom feature with a config instance.static <C> CustomComposedFeature<C> custom(CustomFeature<C> feature, C config) Composes a custom feature with a config instance.static FeatureReads a keyed Minecraft feature holder into a wrapper.static <C> CustomComposedFeature<C> of(CustomFeature<C> feature, C config) Composes a registered custom feature with a config instance.static ComposedFeatureof(FeatureType featureType, FeatureConfiguration config) Authors a feature from a vanilla feature type and its direct feature settings.static ReferencedFeaturereference(ResourceKey key) References a feature already registered under the given key.The resource key of the feature, if present.default Featurewrap()Resolves this object's key in Minecraft's direct feature registry and decodes the registered value.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
resourceKey
The resource key of the feature, if present.- Returns:
- the resource key of the feature, if present
- Since:
- 4.0.0
-
of
@AsOf("4.0.0") @Obsolete static ComposedFeature of(FeatureType featureType, FeatureConfiguration config) Authors a feature from a vanilla feature type and its direct feature settings.- Parameters:
featureType- the vanilla feature typeconfig- the configuration- Returns:
- an authored feature
- Since:
- 4.0.0
-
custom
Composes a custom feature with a config instance.- Type Parameters:
C- the config type- Parameters:
feature- the custom feature to composeconfig- the config instance to place with- Returns:
- an authored feature
- Since:
- 4.0.0
-
of
Composes a registered custom feature with a config instance.- Type Parameters:
C- the config type- Parameters:
feature- the custom feature to composeconfig- the config instance to place with- Returns:
- an authored feature
- Since:
- 4.0.0
-
reference
References a feature already registered under the given key.- Parameters:
key- the registry key of the feature- Returns:
- a reference to the registered feature
- Since:
- 4.0.0
-
wrap
Resolves this object's key in Minecraft's direct feature registry and decodes the registered value.- Returns:
- the decoded feature
- Throws:
IllegalStateException- if this object has no resource key- Since:
- 4.0.0
-
composed
Authors a feature from a vanilla feature type and its direct feature settings.- Returns:
- an authored feature
- Since:
- 4.0.0
-
custom
Composes a registered custom feature with a config instance. The feature- Type Parameters:
C- the config type- Returns:
- an authored configured feature
- Since:
- 4.0.0
-
decode
-