Interface FeatureDependant

All Known Subinterfaces:
BlockType, BlockType.Typed<B>, ItemType, ItemType.Typed<M>, MenuType, MenuType.Typed<V>
All Known Implementing Classes:
EntityType, PotionEffectType, PotionEffectTypeWrapper, PotionType

@NullMarked @NonExtendable public interface FeatureDependant
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 Type
    Method
    Description
    Gets the set of required feature flags for this to be enabled.
  • Method Details

    • requiredFeatures

      default @Unmodifiable Set<FeatureFlag> requiredFeatures()
      Gets the set of required feature flags for this to be enabled.
      Returns:
      the immutable set of feature flags