Interface FeatureDependant
- All Known Subinterfaces:
BlockType, BlockType.Typed<B>, ItemType, ItemType.Typed<M>, MenuType, MenuType.Typed<V,B>
- All Known Implementing Classes:
EntityType, GameRule, PotionEffectType, PotionEffectTypeWrapper, PotionType
Implemented by types in built-in registries that are controlled by
FeatureFlags.
Types in data-driven registries that are controlled by feature flags just will not exist in that registry.- API Note:
- When a type that currently implements this interface transitions to being data-drive, this interface will be removed from that type in the following major version.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Unmodifiable Set<FeatureFlag> Gets the set of required feature flags for this to be enabled.
-
Method Details
-
requiredFeatures
Gets the set of required feature flags for this to be enabled.- Returns:
- the immutable set of feature flags
-