Package net.minecraft.registry
Class SimpleRegistry<T>
java.lang.Object
net.minecraft.registry.SimpleRegistry<T>
- All Implemented Interfaces:
 com.mojang.serialization.Keyable,Iterable<T>,RegistryEntryOwner<T>,MutableRegistry<T>,Registry<T>,RegistryEntryLookup<T>,RegistryWrapper<T>,RegistryWrapper.Impl<T>,IndexedIterable<T>
- Direct Known Subclasses:
 SimpleDefaultedRegistry
An implementation of a mutable registry. All vanilla registries use this (or its
 subclass, 
DefaultedRegistry).- See Also:
 - Mappings:
 Namespace Name named net/minecraft/registry/SimpleRegistryintermediary net/minecraft/class_2370official jt
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.registry.Registry
Registry.PendingTagLoad<T>Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryEntryLookup
RegistryEntryLookup.RegistryLookupNested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper
RegistryWrapper.Impl<T>, RegistryWrapper.WrapperLookupNested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper.Impl
RegistryWrapper.Impl.Delegating<T> - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Reference2IntMap<T> private booleanprivate final Map<Identifier, RegistryEntry.Reference<T>> private @Nullable Map<T, RegistryEntry.Reference<T>> private final RegistryKey<? extends Registry<T>> private final Map<RegistryKey<T>, RegistryEntry.Reference<T>> private final Map<RegistryKey<T>, RegistryEntryInfo> private com.mojang.serialization.Lifecycleprivate final ObjectList<RegistryEntry.Reference<T>> (package private) SimpleRegistry.TagLookup<T> private final Map<TagKey<T>, RegistryEntryList.Named<T>> private final Map<T, RegistryEntry.Reference<T>> Fields inherited from interface net.minecraft.util.collection.IndexedIterable
ABSENT_RAW_ID - 
Constructor Summary
ConstructorsConstructorDescriptionSimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive)  - 
Method Summary
Modifier and TypeMethodDescriptionadd(RegistryKey<T> key, T value, RegistryEntryInfo info) private voidprivate voidassertNotFrozen(RegistryKey<T> key) booleancontains(RegistryKey<T> key) Returns whetherkeyis registered in this registry.booleancontainsId(Identifier id) Returns whetheridis registered in this registry.createEntry(T value) private RegistryEntryList.Named<T> createNamedEntryList(TagKey<T> tag) private RegistryEntry.Reference<T> ensureTagable(TagKey<T> key, RegistryEntry<T> entry) freeze()get(int index) get(@Nullable RegistryKey<T> key) Returns the value that is assignedkey, ornullif there is none.get(@Nullable Identifier id) Returns the value that is assignedid, ornullif there is none.getEntry(int rawId) Returns the reference registry entry for the value assignedrawId, or an empty optional if there is no such value.getEntry(Identifier id) Returns the reference registry entry for the value that is assignedid, or an empty optional if there is no such value.getEntryInfo(RegistryKey<T> key) Set<Map.Entry<RegistryKey<T>, T>> Returns the set containingMap.Entryof the registry keys and values registered in this registry.Returns the ID assigned tovalue, ornullif it is not registered.getIds()Returns the set of all IDs registered in a registry.RegistryKey<? extends Registry<T>> getKey()Returns the registry key ofvalue, or an empty optional if it is not registered.Set<RegistryKey<T>> getKeys()Returns the set of all registry keys registered in a registry.com.mojang.serialization.LifecyclegetOptional(RegistryKey<T> key) getOptional(TagKey<T> tag) (package private) RegistryEntry.Reference<T> getOrCreateEntry(RegistryKey<T> key) Returns a random registry entry from this registry, or an empty optional if the registry is empty.int(package private) RegistryEntryList.Named<T> getTags()private static <T> TgetValue(RegistryEntry.Reference<T> entry) booleanisEmpty()Returns whether the registry is empty.iterator()(package private) voidvoidvoidsetEntries(TagKey<T> tag, List<RegistryEntry<T>> entries) intsize()Returns a stream of registry keys defined in the wrapped registry.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrow, getRawIdOrThrowMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.registry.Registry
getCodec, getEntryCodec, getIndexedEntries, getOptionalValue, getOptionalValue, getRandomEntry, getValueOrThrow, iterateEntries, keys, streamMethods inherited from interface net.minecraft.registry.RegistryEntryLookup
getOrThrow, getOrThrowMethods inherited from interface net.minecraft.registry.entry.RegistryEntryOwner
ownerEqualsMethods inherited from interface net.minecraft.registry.RegistryWrapper
streamKeys, streamTagKeysMethods inherited from interface net.minecraft.registry.RegistryWrapper.Impl
withFeatureFilter, withPredicateFilter 
- 
Field Details
- 
key
- Mappings:
 Namespace Name Mixin selector named keyLnet/minecraft/registry/SimpleRegistry;key:Lnet/minecraft/registry/RegistryKey;intermediary field_41126Lnet/minecraft/class_2370;field_41126:Lnet/minecraft/class_5321;official bLjt;b:Lamd;
 - 
rawIdToEntry
- Mappings:
 Namespace Name Mixin selector named rawIdToEntryLnet/minecraft/registry/SimpleRegistry;rawIdToEntry:Lit/unimi/dsi/fastutil/objects/ObjectList;intermediary field_26682Lnet/minecraft/class_2370;field_26682:Lit/unimi/dsi/fastutil/objects/ObjectList;official cLjt;c:Lit/unimi/dsi/fastutil/objects/ObjectList;
 - 
entryToRawId
- Mappings:
 Namespace Name Mixin selector named entryToRawIdLnet/minecraft/registry/SimpleRegistry;entryToRawId:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;intermediary field_26683Lnet/minecraft/class_2370;field_26683:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;official dLjt;d:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;
 - 
idToEntry
- Mappings:
 Namespace Name Mixin selector named idToEntryLnet/minecraft/registry/SimpleRegistry;idToEntry:Ljava/util/Map;intermediary field_11107Lnet/minecraft/class_2370;field_11107:Ljava/util/Map;official eLjt;e:Ljava/util/Map;
 - 
keyToEntry
- Mappings:
 Namespace Name Mixin selector named keyToEntryLnet/minecraft/registry/SimpleRegistry;keyToEntry:Ljava/util/Map;intermediary field_25067Lnet/minecraft/class_2370;field_25067:Ljava/util/Map;official fLjt;f:Ljava/util/Map;
 - 
valueToEntry
- Mappings:
 Namespace Name Mixin selector named valueToEntryLnet/minecraft/registry/SimpleRegistry;valueToEntry:Ljava/util/Map;intermediary field_36461Lnet/minecraft/class_2370;field_36461:Ljava/util/Map;official gLjt;g:Ljava/util/Map;
 - 
keyToEntryInfo
- Mappings:
 Namespace Name Mixin selector named keyToEntryInfoLnet/minecraft/registry/SimpleRegistry;keyToEntryInfo:Ljava/util/Map;intermediary field_49135Lnet/minecraft/class_2370;field_49135:Ljava/util/Map;official hLjt;h:Ljava/util/Map;
 - 
lifecycle
private com.mojang.serialization.Lifecycle lifecycle- Mappings:
 Namespace Name Mixin selector named lifecycleLnet/minecraft/registry/SimpleRegistry;lifecycle:Lcom/mojang/serialization/Lifecycle;intermediary field_26732Lnet/minecraft/class_2370;field_26732:Lcom/mojang/serialization/Lifecycle;official iLjt;i:Lcom/mojang/serialization/Lifecycle;
 - 
tags
- Mappings:
 Namespace Name Mixin selector named tagsLnet/minecraft/registry/SimpleRegistry;tags:Ljava/util/Map;intermediary field_53686Lnet/minecraft/class_2370;field_53686:Ljava/util/Map;official jLjt;j:Ljava/util/Map;
 - 
tagLookup
SimpleRegistry.TagLookup<T> tagLookup- Mappings:
 Namespace Name Mixin selector named tagLookupLnet/minecraft/registry/SimpleRegistry;tagLookup:Lnet/minecraft/registry/SimpleRegistry$TagLookup;intermediary field_53687Lnet/minecraft/class_2370;field_53687:Lnet/minecraft/class_2370$class_10105;official kLjt;k:Ljt$a;
 - 
frozen
private boolean frozen- Mappings:
 Namespace Name Mixin selector named frozenLnet/minecraft/registry/SimpleRegistry;frozen:Zintermediary field_36463Lnet/minecraft/class_2370;field_36463:Zofficial lLjt;l:Z
 - 
intrusiveValueToEntry
- Mappings:
 Namespace Name Mixin selector named intrusiveValueToEntryLnet/minecraft/registry/SimpleRegistry;intrusiveValueToEntry:Ljava/util/Map;intermediary field_40584Lnet/minecraft/class_2370;field_40584:Ljava/util/Map;official mLjt;m:Ljava/util/Map;
 
 - 
 - 
Constructor Details
- 
SimpleRegistry
public SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;)Vintermediary <init>Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;)Vofficial <init>Ljt;<init>(Lamd;Lcom/mojang/serialization/Lifecycle;)V
 - 
SimpleRegistry
public SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Z)Vintermediary <init>Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Z)Vofficial <init>Ljt;<init>(Lamd;Lcom/mojang/serialization/Lifecycle;Z)V
 
 - 
 - 
Method Details
- 
getTags
- Specified by:
 getTagsin interfaceRegistryWrapper<T>- Mappings:
 Namespace Name Mixin selector named getTagsLnet/minecraft/registry/RegistryWrapper;getTags()Ljava/util/stream/Stream;intermediary method_42020Lnet/minecraft/class_7225;method_42020()Ljava/util/stream/Stream;official eLjn;e()Ljava/util/stream/Stream;
 - 
getKey
- Specified by:
 getKeyin interfaceRegistry<T>- Specified by:
 getKeyin interfaceRegistryWrapper.Impl<T>- Mappings:
 Namespace Name Mixin selector named getKeyLnet/minecraft/registry/RegistryWrapper$Impl;getKey()Lnet/minecraft/registry/RegistryKey;intermediary method_46765Lnet/minecraft/class_7225$class_7226;method_46765()Lnet/minecraft/class_5321;official gLjn$b;g()Lamd;
 - 
toString
 - 
assertNotFrozen
private void assertNotFrozen()- Mappings:
 Namespace Name Mixin selector named assertNotFrozenLnet/minecraft/registry/SimpleRegistry;assertNotFrozen()Vintermediary method_45939Lnet/minecraft/class_2370;method_45939()Vofficial bLjt;b()V
 - 
assertNotFrozen
- Mappings:
 Namespace Name Mixin selector named assertNotFrozenLnet/minecraft/registry/SimpleRegistry;assertNotFrozen(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_40274Lnet/minecraft/class_2370;method_40274(Lnet/minecraft/class_5321;)Vofficial hLjt;h(Lamd;)V
 - 
add
- Specified by:
 addin interfaceMutableRegistry<T>- Mappings:
 Namespace Name Mixin selector named addLnet/minecraft/registry/MutableRegistry;add(Lnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lnet/minecraft/registry/entry/RegistryEntryInfo;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;intermediary method_10272Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lnet/minecraft/class_9248;)Lnet/minecraft/class_6880$class_6883;official aLkh;a(Lamd;Ljava/lang/Object;Ljx;)Ljl$c;
 - 
getId
Returns the ID assigned tovalue, ornullif it is not registered.- Specified by:
 getIdin interfaceRegistry<T>- Returns:
 - the ID assigned to 
value, ornullif it is not registered - Mappings:
 Namespace Name Mixin selector named getIdLnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;intermediary method_10221Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;official bLjy;b(Ljava/lang/Object;)Lame;
 - 
getKey
Returns the registry key ofvalue, or an empty optional if it is not registered.- Specified by:
 getKeyin interfaceRegistry<T>- Returns:
 - the registry key of 
value, or an empty optional if it is not registered - Mappings:
 Namespace Name Mixin selector named getKeyLnet/minecraft/registry/Registry;getKey(Ljava/lang/Object;)Ljava/util/Optional;intermediary method_29113Lnet/minecraft/class_2378;method_29113(Ljava/lang/Object;)Ljava/util/Optional;official dLjy;d(Ljava/lang/Object;)Ljava/util/Optional;
 - 
getRawId
- Specified by:
 getRawIdin interfaceIndexedIterable<T>- Specified by:
 getRawIdin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named getRawIdLnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)Iintermediary method_10206Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)Iofficial aLjq;a(Ljava/lang/Object;)I
 - 
get
Returns the value that is assignedkey, ornullif there is none.- Specified by:
 getin interfaceRegistry<T>- Returns:
 - the value that is assigned 
key, ornullif there is none - Mappings:
 Namespace Name Mixin selector named getLnet/minecraft/registry/Registry;get(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/Object;intermediary method_29107Lnet/minecraft/class_2378;method_29107(Lnet/minecraft/class_5321;)Ljava/lang/Object;official cLjy;c(Lamd;)Ljava/lang/Object;
 - 
get
- Specified by:
 getin interfaceIndexedIterable<T>- Mappings:
 Namespace Name Mixin selector named getLnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;intermediary method_10200Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;official aLjq;a(I)Ljava/lang/Object;
 - 
getEntry
Returns the reference registry entry for the value assignedrawId, or an empty optional if there is no such value.- Specified by:
 getEntryin interfaceRegistry<T>- Returns:
 - the reference registry entry for the value assigned 
rawId, or an empty optional if there is no such value - Mappings:
 Namespace Name Mixin selector named getEntryLnet/minecraft/registry/Registry;getEntry(I)Ljava/util/Optional;intermediary method_40265Lnet/minecraft/class_2378;method_40265(I)Ljava/util/Optional;official cLjy;c(I)Ljava/util/Optional;
 - 
getEntry
Returns the reference registry entry for the value that is assignedid, or an empty optional if there is no such value.- Specified by:
 getEntryin interfaceRegistry<T>- Returns:
 - the reference registry entry for the value that is assigned 
id, or an empty optional if there is no such value - Mappings:
 Namespace Name Mixin selector named getEntryLnet/minecraft/registry/Registry;getEntry(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;intermediary method_10223Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/util/Optional;official cLjy;c(Lame;)Ljava/util/Optional;
 - 
getOptional
- Specified by:
 getOptionalin interfaceRegistryEntryLookup<T>- Mappings:
 Namespace Name Mixin selector named getOptionalLnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_46746Lnet/minecraft/class_7871;method_46746(Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLjm;a(Lamd;)Ljava/util/Optional;
 - 
getDefaultEntry
- Specified by:
 getDefaultEntryin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named getDefaultEntryLnet/minecraft/registry/Registry;getDefaultEntry()Ljava/util/Optional;intermediary method_60385Lnet/minecraft/class_2378;method_60385()Ljava/util/Optional;official aLjy;a()Ljava/util/Optional;
 - 
getEntry
- Specified by:
 getEntryin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named getEntryLnet/minecraft/registry/Registry;getEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_47983Lnet/minecraft/class_2378;method_47983(Ljava/lang/Object;)Lnet/minecraft/class_6880;official eLjy;e(Ljava/lang/Object;)Ljl;
 - 
getOrCreateEntry
- Mappings:
 Namespace Name Mixin selector named getOrCreateEntryLnet/minecraft/registry/SimpleRegistry;getOrCreateEntry(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;intermediary method_44298Lnet/minecraft/class_2370;method_44298(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;official iLjt;i(Lamd;)Ljl$c;
 - 
size
public int size()- Specified by:
 sizein interfaceIndexedIterable<T>- Mappings:
 Namespace Name Mixin selector named sizeLnet/minecraft/util/collection/IndexedIterable;size()Iintermediary method_10204Lnet/minecraft/class_2359;method_10204()Iofficial dLjq;d()I
 - 
getEntryInfo
- Specified by:
 getEntryInfoin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named getEntryInfoLnet/minecraft/registry/Registry;getEntryInfo(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_57058Lnet/minecraft/class_2378;method_57058(Lnet/minecraft/class_5321;)Ljava/util/Optional;official dLjy;d(Lamd;)Ljava/util/Optional;
 - 
getLifecycle
public com.mojang.serialization.Lifecycle getLifecycle()- Specified by:
 getLifecyclein interfaceRegistryWrapper.Impl<T>- Mappings:
 Namespace Name Mixin selector named getLifecycleLnet/minecraft/registry/RegistryWrapper$Impl;getLifecycle()Lcom/mojang/serialization/Lifecycle;intermediary method_46766Lnet/minecraft/class_7225$class_7226;method_46766()Lcom/mojang/serialization/Lifecycle;official hLjn$b;h()Lcom/mojang/serialization/Lifecycle;
 - 
iterator
 - 
get
Returns the value that is assignedid, ornullif there is none.- Specified by:
 getin interfaceRegistry<T>- Returns:
 - the value that is assigned 
id, ornullif there is none - Mappings:
 Namespace Name Mixin selector named getLnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;intermediary method_63535Lnet/minecraft/class_2378;method_63535(Lnet/minecraft/class_2960;)Ljava/lang/Object;official aLjy;a(Lame;)Ljava/lang/Object;
 - 
getValue
- Mappings:
 Namespace Name Mixin selector named getValueLnet/minecraft/registry/SimpleRegistry;getValue(Lnet/minecraft/registry/entry/RegistryEntry$Reference;)Ljava/lang/Object;intermediary method_40253Lnet/minecraft/class_2370;method_40253(Lnet/minecraft/class_6880$class_6883;)Ljava/lang/Object;official aLjt;a(Ljl$c;)Ljava/lang/Object;
 - 
getIds
Returns the set of all IDs registered in a registry.- Specified by:
 getIdsin interfaceRegistry<T>- Returns:
 - the set of all IDs registered in a registry
 - Mappings:
 Namespace Name Mixin selector named getIdsLnet/minecraft/registry/Registry;getIds()Ljava/util/Set;intermediary method_10235Lnet/minecraft/class_2378;method_10235()Ljava/util/Set;official iLjy;i()Ljava/util/Set;
 - 
getKeys
Returns the set of all registry keys registered in a registry.- Specified by:
 getKeysin interfaceRegistry<T>- Returns:
 - the set of all registry keys registered in a registry
 - Mappings:
 Namespace Name Mixin selector named getKeysLnet/minecraft/registry/Registry;getKeys()Ljava/util/Set;intermediary method_42021Lnet/minecraft/class_2378;method_42021()Ljava/util/Set;official jLjy;j()Ljava/util/Set;
 - 
getEntrySet
Returns the set containingMap.Entryof the registry keys and values registered in this registry.- Specified by:
 getEntrySetin interfaceRegistry<T>- Returns:
 - the set containing 
Map.Entryof the registry keys and values registered in this registry - Mappings:
 Namespace Name Mixin selector named getEntrySetLnet/minecraft/registry/Registry;getEntrySet()Ljava/util/Set;intermediary method_29722Lnet/minecraft/class_2378;method_29722()Ljava/util/Set;official kLjy;k()Ljava/util/Set;
 - 
streamEntries
Returns a stream of registry keys defined in the wrapped registry.- Specified by:
 streamEntriesin interfaceRegistryWrapper<T>- Returns:
 - a stream of registry keys defined in the wrapped registry
 - See Also:
 - Mappings:
 Namespace Name Mixin selector named streamEntriesLnet/minecraft/registry/RegistryWrapper;streamEntries()Ljava/util/stream/Stream;intermediary method_42017Lnet/minecraft/class_7225;method_42017()Ljava/util/stream/Stream;official cLjn;c()Ljava/util/stream/Stream;
 - 
streamTags
- Specified by:
 streamTagsin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named streamTagsLnet/minecraft/registry/Registry;streamTags()Ljava/util/stream/Stream;intermediary method_40272Lnet/minecraft/class_2378;method_40272()Ljava/util/stream/Stream;official lLjy;l()Ljava/util/stream/Stream;
 - 
getTag
- Mappings:
 Namespace Name Mixin selector named getTagLnet/minecraft/registry/SimpleRegistry;getTag(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;intermediary method_62690Lnet/minecraft/class_2370;method_62690(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;official dLjt;d(Lbae;)Ljp$c;
 - 
createNamedEntryList
- Mappings:
 Namespace Name Mixin selector named createNamedEntryListLnet/minecraft/registry/SimpleRegistry;createNamedEntryList(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;intermediary method_40562Lnet/minecraft/class_2370;method_40562(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;official eLjt;e(Lbae;)Ljp$c;
 - 
isEmpty
public boolean isEmpty()Returns whether the registry is empty.- Specified by:
 isEmptyin interfaceMutableRegistry<T>- Returns:
 - whether the registry is empty
 - Mappings:
 Namespace Name Mixin selector named isEmptyLnet/minecraft/registry/MutableRegistry;isEmpty()Zintermediary method_35863Lnet/minecraft/class_2385;method_35863()Zofficial mLkh;m()Z
 - 
getRandom
Returns a random registry entry from this registry, or an empty optional if the registry is empty.- Specified by:
 getRandomin interfaceRegistry<T>- Returns:
 - a random registry entry from this registry, or an empty optional if the registry is empty
 - Mappings:
 Namespace Name Mixin selector named getRandomLnet/minecraft/registry/Registry;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;intermediary method_10240Lnet/minecraft/class_2378;method_10240(Lnet/minecraft/class_5819;)Ljava/util/Optional;official aLjy;a(Lbck;)Ljava/util/Optional;
 - 
containsId
Returns whetheridis registered in this registry.- Specified by:
 containsIdin interfaceRegistry<T>- Returns:
 - whether 
idis registered in this registry - Mappings:
 Namespace Name Mixin selector named containsIdLnet/minecraft/registry/Registry;containsId(Lnet/minecraft/util/Identifier;)Zintermediary method_10250Lnet/minecraft/class_2378;method_10250(Lnet/minecraft/class_2960;)Zofficial dLjy;d(Lame;)Z
 - 
contains
Returns whetherkeyis registered in this registry.- Specified by:
 containsin interfaceRegistry<T>- Returns:
 - whether 
keyis registered in this registry - Mappings:
 Namespace Name Mixin selector named containsLnet/minecraft/registry/Registry;contains(Lnet/minecraft/registry/RegistryKey;)Zintermediary method_35842Lnet/minecraft/class_2378;method_35842(Lnet/minecraft/class_5321;)Zofficial eLjy;e(Lamd;)Z
 - 
freeze
 - 
createEntry
- Specified by:
 createEntryin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named createEntryLnet/minecraft/registry/Registry;createEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;intermediary method_40269Lnet/minecraft/class_2378;method_40269(Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;official fLjy;f(Ljava/lang/Object;)Ljl$c;
 - 
getOptional
- Specified by:
 getOptionalin interfaceRegistryEntryLookup<T>- Mappings:
 Namespace Name Mixin selector named getOptionalLnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;intermediary method_46733Lnet/minecraft/class_7871;method_46733(Lnet/minecraft/class_6862;)Ljava/util/Optional;official aLjm;a(Lbae;)Ljava/util/Optional;
 - 
ensureTagable
- Mappings:
 Namespace Name Mixin selector named ensureTagableLnet/minecraft/registry/SimpleRegistry;ensureTagable(Lnet/minecraft/registry/tag/TagKey;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;intermediary method_62682Lnet/minecraft/class_2370;method_62682(Lnet/minecraft/class_6862;Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880$class_6883;official aLjt;a(Lbae;Ljl;)Ljl$c;
 - 
setEntries
- Specified by:
 setEntriesin interfaceMutableRegistry<T>- Mappings:
 Namespace Name Mixin selector named setEntriesLnet/minecraft/registry/MutableRegistry;setEntries(Lnet/minecraft/registry/tag/TagKey;Ljava/util/List;)Vintermediary method_62681Lnet/minecraft/class_2385;method_62681(Lnet/minecraft/class_6862;Ljava/util/List;)Vofficial aLkh;a(Lbae;Ljava/util/List;)V
 - 
refreshTags
void refreshTags()- Mappings:
 Namespace Name Mixin selector named refreshTagsLnet/minecraft/registry/SimpleRegistry;refreshTags()Vintermediary method_62692Lnet/minecraft/class_2370;method_62692()Vofficial uLjt;u()V
 - 
resetTagEntries
public void resetTagEntries()- Mappings:
 Namespace Name Mixin selector named resetTagEntriesLnet/minecraft/registry/SimpleRegistry;resetTagEntries()Vintermediary method_62691Lnet/minecraft/class_2370;method_62691()Vofficial oLjt;o()V
 - 
createMutableRegistryLookup
- Specified by:
 createMutableRegistryLookupin interfaceMutableRegistry<T>- Mappings:
 Namespace Name Mixin selector named createMutableRegistryLookupLnet/minecraft/registry/MutableRegistry;createMutableRegistryLookup()Lnet/minecraft/registry/RegistryEntryLookup;intermediary method_46769Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;official pLkh;p()Ljm;
 - 
startTagReload
- Specified by:
 startTagReloadin interfaceRegistry<T>- Mappings:
 Namespace Name Mixin selector named startTagReloadLnet/minecraft/registry/Registry;startTagReload(Lnet/minecraft/registry/tag/TagGroupLoader$RegistryTags;)Lnet/minecraft/registry/Registry$PendingTagLoad;intermediary method_62683Lnet/minecraft/class_2378;method_62683(Lnet/minecraft/class_3503$class_6863;)Lnet/minecraft/class_2378$class_10106;official aLjy;a(Lbaf$c;)Ljy$a;
 
 -