Package io.papermc.paper.registry
Interface RegistryKey<T>
- Type Parameters:
T
- the value type
- All Superinterfaces:
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> Data-driven registry for banner patterns.static final RegistryKey
<Biome> Data-driven registry for biomes.static final RegistryKey
<BlockType> static final RegistryKey
<Cat.Type> Built-in registry for cat variants.static final RegistryKey
<DamageType> Data-driven registry for damage types.static final RegistryKey
<Enchantment> Data-driven registry for enchantments.static final RegistryKey
<EntityType> static final RegistryKey
<Fluid> static final RegistryKey
<Frog.Variant> Built-in registry for frog variants.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
<JukeboxSong> Data-driven registry for jukebox songs.static final RegistryKey
<MapCursor.Type> Built-in registry for map decoration types.static final RegistryKey
<MemoryKey<?>> static final RegistryKey
<MenuType> Built-in registry for menu types.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> Built-in registry for villager professions.static final RegistryKey
<Villager.Type> Built-in registry for villager types.static final RegistryKey
<Wolf.Variant> Data-driven registry for wolf variants. -
Method Summary
-
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:
-
MOB_EFFECT
Built-in registry for potion effect types (mob effects).- See Also:
-
BLOCK
- API Note:
- DO NOT USE
-
ITEM
- See Also:
- API Note:
- use preferably only in the context of registry entries.
-
CAT_VARIANT
Built-in registry for cat variants.- See Also:
-
FROG_VARIANT
Built-in registry for frog variants.- See Also:
-
VILLAGER_PROFESSION
Built-in registry for villager professions.- See Also:
-
VILLAGER_TYPE
Built-in registry for villager types.- See Also:
-
MAP_DECORATION_TYPE
Built-in registry for map decoration types.- See Also:
-
MENU
Built-in registry for menu 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:
-
DAMAGE_TYPE
Data-driven registry for damage types.- See Also:
-
WOLF_VARIANT
Data-driven registry for wolf variants.- See Also:
-
ENCHANTMENT
Data-driven registry for enchantments.- See Also:
-
JUKEBOX_SONG
Data-driven registry for jukebox songs.- See Also:
-
BANNER_PATTERN
Data-driven registry for banner patterns.- See Also:
-
PAINTING_VARIANT
-
ATTRIBUTE
-
ENTITY_TYPE
-
PARTICLE_TYPE
-
POTION
-
SOUND_EVENT
-
MEMORY_MODULE_TYPE
-
FLUID
-