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
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey<Attribute> Built-in registry for attributes.static final RegistryKey<PatternType> Data-driven registry for banner patterns.static final RegistryKey<Biome> Data-driven registry for biomes.static final RegistryKey<BlockType> Built-in registry for block types.static final RegistryKey<Cat.Type> Data-driven registry for cat variants.static final RegistryKey<Chicken.Variant> Data-driven registry for chicken variants.static final RegistryKey<Cow.Variant> Data-driven registry for cow variants.static final RegistryKey<DamageType> Data-driven registry for damage types.static final RegistryKey<DataComponentType> Built-in registry for data component types.static final RegistryKey<Dialog> Data-driven registry for dialogs.static final RegistryKey<Enchantment> Data-driven registry for enchantments.static final RegistryKey<EntityType> static final RegistryKey<Fluid> Built-in registry for fluids.static final RegistryKey<Frog.Variant> Data-driven registry for frog variants.static final RegistryKey<GameEvent> Built-in registry for game eventsstatic final RegistryKey<MusicInstrument> Data-driven registry for instruments.static final RegistryKey<ItemType> Built-in registry for item types.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> Data-driven registry for painting variants.static final RegistryKey<Particle> static final RegistryKey<Pig.Variant> Data-driven registry for pig variants.static final RegistryKey<PotionType> static final RegistryKey<Sound> Built-in registry for sound events.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.SoundVariant> Data-driven registry for wolf sound variants.static final RegistryKey<Wolf.Variant> Data-driven registry for wolf variants. -
Method Summary
Modifier and TypeMethodDescriptionConstructs a newTagKeyfor this registry given the tag key's key.Constructs a newTagKeyfor this registry given the tag key's key.Constructs a newTypedKeyfor this registry given the typed key's key.Constructs a newTypedKeyfor this registry given the typed key's key.
-
Field Details
-
GAME_EVENT
Built-in registry for game events- See Also:
-
STRUCTURE_TYPE
Built-in registry for structure types.- See Also:
-
MOB_EFFECT
Built-in registry for potion effect types (mob effects).- See Also:
-
BLOCK
Built-in registry for block types.- See Also:
-
ITEM
Built-in registry for item types.- 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:
-
ATTRIBUTE
Built-in registry for attributes.- See Also:
-
FLUID
Built-in registry for fluids.- See Also:
-
SOUND_EVENT
Built-in registry for sound events.- See Also:
-
DATA_COMPONENT_TYPE
Built-in registry for data component 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:
-
WOLF_SOUND_VARIANT
Data-driven registry for wolf sound 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
Data-driven registry for painting variants.- See Also:
-
INSTRUMENT
Data-driven registry for instruments.- See Also:
-
CAT_VARIANT
Data-driven registry for cat variants.- See Also:
-
FROG_VARIANT
Data-driven registry for frog variants.- See Also:
-
CHICKEN_VARIANT
Data-driven registry for chicken variants.- See Also:
-
COW_VARIANT
Data-driven registry for cow variants.- See Also:
-
PIG_VARIANT
Data-driven registry for pig variants.- See Also:
-
DIALOG
Data-driven registry for dialogs.- See Also:
-
ENTITY_TYPE
-
PARTICLE_TYPE
-
POTION
-
MEMORY_MODULE_TYPE
-
-
Method Details
-
typedKey
Constructs a newTypedKeyfor this registry given the typed key's key.- Parameters:
key- the key of the typed key.- Returns:
- the constructed typed key.
-
typedKey
Constructs a newTypedKeyfor this registry given the typed key's key.- Parameters:
key- the string representation of the key that will be passed toKey.key(String).- Returns:
- the constructed typed key.
-
tagKey
Constructs a newTagKeyfor this registry given the tag key's key.- Parameters:
key- the key of the typed key.- Returns:
- the constructed tag key.
-
tagKey
Constructs a newTagKeyfor this registry given the tag key's key.- Parameters:
key- the string representation of the key that will be passed toKey.key(String).- Returns:
- the constructed tag key.
-