Interface Keyed

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

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, since="2.11.0") 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
      Since:
      2.11.0