Interface Keyed

All Known Subinterfaces:
MultiUserPlatform, Platform, World
All Known Implementing Classes:
AbstractPlatform, AbstractWorld, BiomeCategory, BiomeType, BlockCategory, BlockType, ConfiguredFeatureType, EntityType, FluidCategory, FluidType, GameMode, ItemCategory, ItemType, NullWorld, StructureType, WeatherType

public interface Keyed
Represents an objects that can be added to a registry and referenced by an id which is unique within its registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use id() instead.
    default String
    id()
    The id of this object in the registry.
  • Method Details

    • getId

      @Deprecated(forRemoval=true) default String getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use id() instead.
      The id of this object in the registry. Must be unique, and lowercase. Certain registries (e.g Namespaced ones) may have additional restrictions.
      Returns:
      an id
    • id

      The id of this object in the registry. Must be unique and lowercase. Certain registries (e.g namespaced ones) may have additional restrictions.
      Returns:
      an id