Package io.papermc.paper.registry
Interface RegistryKey<T>
- Type Parameters:
T
- the value type
- All Superinterfaces:
net.kyori.adventure.key.Keyed
public sealed interface RegistryKey<T>
extends 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
<Attribute> static final RegistryKey
<PatternType> static final RegistryKey
<Biome> Data-driven registry for biomes.static final RegistryKey
<BlockType> static final RegistryKey
<Cat.Type> static final RegistryKey
<DamageType> Data-driven registry for damage types.static final RegistryKey
<Enchantment> Built-in registry for enchantments.static final RegistryKey
<EntityType> static final RegistryKey
<Fluid> static final RegistryKey
<Frog.Variant> static final RegistryKey
<GameEvent> Built-in registry for game eventsstatic final RegistryKey
<MusicInstrument> Built-in registry for instruments.static final RegistryKey
<ItemType> static final RegistryKey
<MapCursor.Type> static final RegistryKey
<MemoryKey<?>> static final RegistryKey
<PotionEffectType> Built-in registry for potion effect types (mob effects).static final RegistryKey
<Art> static final RegistryKey
<Particle> static final RegistryKey
<PotionType> static final RegistryKey
<Sound> static 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.static final RegistryKey
<Villager.Profession> static final RegistryKey
<Villager.Type> static final RegistryKey
<Wolf.Variant> Data-driven registry for wolf variants -
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:
-
INSTRUMENT
Built-in registry for instruments.- See Also:
-
ENCHANTMENT
Built-in registry for enchantments.- See Also:
-
MOB_EFFECT
Built-in registry for potion effect types (mob effects).- See Also:
-
BLOCK
- API Note:
- DO NOT USE
-
ITEM
- API Note:
- DO NOT USE
-
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:
-
DAMAGE_TYPE
Data-driven registry for damage types.- See Also:
-
WOLF_VARIANT
Data-driven registry for wolf variants- See Also:
-
PAINTING_VARIANT
-
ATTRIBUTE
-
BANNER_PATTERN
-
CAT_VARIANT
-
ENTITY_TYPE
-
PARTICLE_TYPE
-
POTION
-
SOUND_EVENT
-
VILLAGER_PROFESSION
-
VILLAGER_TYPE
-
MEMORY_MODULE_TYPE
-
FLUID
-
FROG_VARIANT
-
MAP_DECORATION_TYPE
-