Record Class RegistryKey<T>
java.lang.Object
java.lang.Record
fr.fidorial.registry.RegistryKey<T>
- Type Parameters:
T- marker type for entries contained by the registry- Record Components:
key- namespaced registry identifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey<Attribute> Registry key forminecraft:attribute.static final RegistryKey<BannerPattern> Registry key forminecraft:banner_pattern.static final RegistryKey<Biome> Registry key forminecraft:worldgen/biome.static final RegistryKey<BlockType> Registry key forminecraft:block.static final RegistryKey<CatSoundVariant> Registry key forminecraft:cat_sound_variant.static final RegistryKey<CatVariant> Registry key forminecraft:cat_variant.static final RegistryKey<ChatType> Registry key forminecraft:chat_type.static final RegistryKey<ChickenSoundVariant> Registry key forminecraft:chicken_sound_variant.static final RegistryKey<ChickenVariant> Registry key forminecraft:chicken_variant.static final RegistryKey<CowSoundVariant> Registry key forminecraft:cow_sound_variant.static final RegistryKey<CowVariant> Registry key forminecraft:cow_variant.static final RegistryKey<DamageType> Registry key forminecraft:damage_type.static final RegistryKey<DataComponentType> Registry key forminecraft:data_component_type.static final RegistryKey<Dialog> Registry key forminecraft:dialog.static final RegistryKey<DimensionType> Registry key forminecraft:dimension_type.static final RegistryKey<Enchantment> Registry key forminecraft:enchantment.static final RegistryKey<EntityType> Registry key forminecraft:entity_type.static final RegistryKey<FrogVariant> Registry key forminecraft:frog_variant.static final RegistryKey<GameEvent> Registry key forminecraft:game_event.static final RegistryKey<GameRule> Registry key forminecraft:game_rule.static final RegistryKey<Instrument> Registry key forminecraft:instrument.static final RegistryKey<Item> Registry key forminecraft:item.static final RegistryKey<JukeboxSong> Registry key forminecraft:jukebox_song.static final RegistryKey<MapDecorationType> Registry key forminecraft:map_decoration_type.static final RegistryKey<MenuType> Registry key forminecraft:menu.static final RegistryKey<MobEffect> Registry key forminecraft:mob_effect.static final RegistryKey<PaintingVariant> Registry key forminecraft:painting_variant.static final RegistryKey<PigSoundVariant> Registry key forminecraft:pig_sound_variant.static final RegistryKey<PigVariant> Registry key forminecraft:pig_variant.static final RegistryKey<SoundEvent> Registry key forminecraft:sound_event.static final RegistryKey<Timeline> Registry key forminecraft:timeline.static final RegistryKey<TrimMaterial> Registry key forminecraft:trim_material.static final RegistryKey<TrimPattern> Registry key forminecraft:trim_pattern.static final RegistryKey<VillagerProfession> Registry key forminecraft:villager_profession.static final RegistryKey<VillagerType> Registry key forminecraft:villager_type.static final RegistryKey<WolfSoundVariant> Registry key forminecraft:wolf_sound_variant.static final RegistryKey<WolfVariant> Registry key forminecraft:wolf_variant.static final RegistryKey<WorldClock> Registry key forminecraft:world_clock.static final RegistryKey<ZombieNautilusVariant> Registry key forminecraft:zombie_nautilus_variant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.static <T> RegistryKey<T> toString()Returns a string representation of this record class.
-
Field Details
-
ATTRIBUTE
Registry key forminecraft:attribute. -
BANNER_PATTERN
Registry key forminecraft:banner_pattern. -
BIOME
Registry key forminecraft:worldgen/biome. -
BLOCK
Registry key forminecraft:block. -
CAT_SOUND_VARIANT
Registry key forminecraft:cat_sound_variant. -
CAT_VARIANT
Registry key forminecraft:cat_variant. -
CHAT_TYPE
Registry key forminecraft:chat_type. -
CHICKEN_SOUND_VARIANT
Registry key forminecraft:chicken_sound_variant. -
CHICKEN_VARIANT
Registry key forminecraft:chicken_variant. -
COW_SOUND_VARIANT
Registry key forminecraft:cow_sound_variant. -
COW_VARIANT
Registry key forminecraft:cow_variant. -
DAMAGE_TYPE
Registry key forminecraft:damage_type. -
DATA_COMPONENT_TYPE
Registry key forminecraft:data_component_type. -
DIALOG
Registry key forminecraft:dialog. -
DIMENSION_TYPE
Registry key forminecraft:dimension_type. -
ENCHANTMENT
Registry key forminecraft:enchantment. -
FROG_VARIANT
Registry key forminecraft:frog_variant. -
GAME_EVENT
Registry key forminecraft:game_event. -
GAME_RULE
Registry key forminecraft:game_rule. -
INSTRUMENT
Registry key forminecraft:instrument. -
ITEM
Registry key forminecraft:item. -
JUKEBOX_SONG
Registry key forminecraft:jukebox_song. -
MAP_DECORATION_TYPE
Registry key forminecraft:map_decoration_type. -
MENU
Registry key forminecraft:menu. -
MOB_EFFECT
Registry key forminecraft:mob_effect. -
PAINTING_VARIANT
Registry key forminecraft:painting_variant. -
PIG_SOUND_VARIANT
Registry key forminecraft:pig_sound_variant. -
PIG_VARIANT
Registry key forminecraft:pig_variant. -
SOUND_EVENT
Registry key forminecraft:sound_event. -
TIMELINE
Registry key forminecraft:timeline. -
TRIM_MATERIAL
Registry key forminecraft:trim_material. -
TRIM_PATTERN
Registry key forminecraft:trim_pattern. -
VILLAGER_PROFESSION
Registry key forminecraft:villager_profession. -
VILLAGER_TYPE
Registry key forminecraft:villager_type. -
WOLF_SOUND_VARIANT
Registry key forminecraft:wolf_sound_variant. -
WOLF_VARIANT
Registry key forminecraft:wolf_variant. -
WORLD_CLOCK
Registry key forminecraft:world_clock. -
ZOMBIE_NAUTILUS_VARIANT
Registry key forminecraft:zombie_nautilus_variant. -
ENTITY_TYPE
Registry key forminecraft:entity_type.
-
-
Constructor Details
-
RegistryKey
-
-
Method Details
-
of
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
key
-