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.
- Since:
- 1.20.2
-
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.SoundVariant> Data-driven registry for cat sound variants.static final RegistryKey<Cat.Type> Data-driven registry for cat variants.static final RegistryKey<Chicken.SoundVariant> Data-driven registry for chicken sound variants.static final RegistryKey<Chicken.Variant> Data-driven registry for chicken variants.static final RegistryKey<Cow.SoundVariant> Data-driven registry for cow sound 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<GameRule<?>> Built-in registry for game rules.static 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.SoundVariant> Data-driven registry for pig sound variants.static final RegistryKey<Pig.Variant> Data-driven registry for pig variants.static final RegistryKey<PoiType> Built-in registry for poi types.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.static final RegistryKey<ZombieNautilus.Variant> Data-driven registry for zombie nautilus 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- Since:
- 1.20.2
- See Also:
-
STRUCTURE_TYPE
Built-in registry for structure types.- Since:
- 1.20.2
- See Also:
-
MOB_EFFECT
Built-in registry for potion effect types (mob effects).- Since:
- 1.20.6
- See Also:
-
BLOCK
Built-in registry for block types.- Since:
- 1.20.6
- See Also:
-
ITEM
-
VILLAGER_PROFESSION
Built-in registry for villager professions.- Since:
- 1.20.6
- See Also:
-
POINT_OF_INTEREST_TYPE
Built-in registry for poi types.- Since:
- 26.1.2
- See Also:
-
VILLAGER_TYPE
Built-in registry for villager types.- Since:
- 1.20.6
- See Also:
-
MAP_DECORATION_TYPE
Built-in registry for map decoration types.- Since:
- 1.20.6
- See Also:
-
MENU
-
ATTRIBUTE
Built-in registry for attributes.- Since:
- 1.20.6
- See Also:
-
FLUID
-
SOUND_EVENT
Built-in registry for sound events.- Since:
- 1.20.6
- See Also:
-
DATA_COMPONENT_TYPE
Built-in registry for data component types.- Since:
- 1.21.3
- See Also:
-
GAME_RULE
Built-in registry for game rules.- Since:
- 1.21.11
- See Also:
-
BIOME
-
STRUCTURE
Data-driven registry for structures.- Since:
- 1.20.4
- See Also:
-
TRIM_MATERIAL
Data-driven registry for trim materials.- Since:
- 1.20.2
- See Also:
-
TRIM_PATTERN
Data-driven registry for trim patterns.- Since:
- 1.20.2
- See Also:
-
DAMAGE_TYPE
Data-driven registry for damage types.- Since:
- 1.20.6
- See Also:
-
WOLF_VARIANT
Data-driven registry for wolf variants.- Since:
- 1.20.6
- See Also:
-
WOLF_SOUND_VARIANT
Data-driven registry for wolf sound variants.- Since:
- 1.21.6
- See Also:
-
ENCHANTMENT
Data-driven registry for enchantments.- Since:
- 1.20.6
- See Also:
-
JUKEBOX_SONG
Data-driven registry for jukebox songs.- Since:
- 1.21
- See Also:
-
BANNER_PATTERN
Data-driven registry for banner patterns.- Since:
- 1.20.6
- See Also:
-
PAINTING_VARIANT
Data-driven registry for painting variants.- Since:
- 1.20.6
- See Also:
-
INSTRUMENT
Data-driven registry for instruments.- Since:
- 1.20.6
- See Also:
-
CAT_VARIANT
Data-driven registry for cat variants.- Since:
- 1.20.6
- See Also:
-
CAT_SOUND_VARIANT
Data-driven registry for cat sound variants.- Since:
- 26.1.2
- See Also:
-
FROG_VARIANT
Data-driven registry for frog variants.- Since:
- 1.20.6
- See Also:
-
CHICKEN_VARIANT
Data-driven registry for chicken variants.- Since:
- 1.21.6
- See Also:
-
CHICKEN_SOUND_VARIANT
Data-driven registry for chicken sound variants.- Since:
- 26.1.2
- See Also:
-
COW_VARIANT
Data-driven registry for cow variants.- Since:
- 1.21.6
- See Also:
-
COW_SOUND_VARIANT
Data-driven registry for cow sound variants.- Since:
- 26.1.2
- See Also:
-
PIG_VARIANT
Data-driven registry for pig variants.- Since:
- 1.21.6
- See Also:
-
PIG_SOUND_VARIANT
Data-driven registry for pig sound variants.- Since:
- 26.1.2
- See Also:
-
ZOMBIE_NAUTILUS_VARIANT
Data-driven registry for zombie nautilus variants.- Since:
- 1.21.11
- See Also:
-
DIALOG
-
ENTITY_TYPE
- Since:
- 1.20.6
-
PARTICLE_TYPE
- Since:
- 1.20.6
-
POTION
- Since:
- 1.20.6
-
MEMORY_MODULE_TYPE
- Since:
- 1.20.6
-
-
Method Details
-
typedKey
-
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.
- Since:
- 1.21.4
-
tagKey
-
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.
- Since:
- 1.21.4
-