Package io.papermc.paper.registry
Interface RegistryKey<T>
- Type Parameters:
T
- the value type
- All Superinterfaces:
net.kyori.adventure.key.Keyed
Identifier for a specific registry. For use with
TypedKey
and the registry modification API.
There are 2 types of registries, identified as "built-in" or "data-driven". The former are not changeable by datapacks (which doesn't necessarily mean they aren't changeable in the API) and are loaded first. "Data-driven" registries are all created by reading in data from the vanilla and other datapacks.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RegistryKey<Biome>
Data-driven registry for biomes.static final RegistryKey<GameEvent>
Built-in registry for game eventsstatic final RegistryKey<Structure>
Data-driven registry for structures.static final RegistryKey<StructureType>
Built-in registry for structure types.static final RegistryKey<TrimMaterial>
Data-driven registry for trim materials.static final RegistryKey<TrimPattern>
Data-driven registry for trim patterns. -
Method Summary
Methods inherited from interface net.kyori.adventure.key.Keyed
key
-
Field Details
-
GAME_EVENT
Built-in registry for game events- See Also:
-
STRUCTURE_TYPE
Built-in registry for structure types.- See Also:
-
BIOME
Data-driven registry for biomes.- See Also:
-
STRUCTURE
Data-driven registry for structures.- See Also:
-
TRIM_MATERIAL
Data-driven registry for trim materials.- See Also:
-
TRIM_PATTERN
Data-driven registry for trim patterns.- See Also:
-