Interface Keyed
- All Known Subinterfaces:
MultiUserPlatform, Platform, SimpleWorld, World
- All Known Implementing Classes:
AbstractPlatform, AbstractWorld, BiomeCategory, BiomeType, BlockCategory, BlockType, Category, ConfiguredFeatureType, EntityType, FluidCategory, FluidType, GameMode, ItemCategory, ItemType, NamespacedRegistry, NullWorld, Registry, StructureType, TreeType, 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
-
Method Details
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.Useid()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
-
id()instead.