Package net.minecraft.registry
Interface MutableRegistry<T>
- All Superinterfaces:
IndexedIterable<T>,Iterable<T>,com.mojang.serialization.Keyable,Registry<T>,RegistryEntryLookup<T>,RegistryEntryOwner<T>,RegistryWrapper<T>,RegistryWrapper.Impl<T>
- All Known Implementing Classes:
SimpleDefaultedRegistry,SimpleRegistry
A registry that allows adding or modifying values.
Note that in vanilla, all registries are instances of this.
- See Also:
- Mappings:
Namespace Name named net/minecraft/registry/MutableRegistryintermediary net/minecraft/class_2385official kn
-
Nested Class Summary
Nested 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
Fields inherited from interface net.minecraft.util.collection.IndexedIterable
ABSENT_RAW_ID -
Method Summary
Modifier and TypeMethodDescriptionadd(RegistryKey<T> key, T value, RegistryEntryInfo info) booleanisEmpty()Returns whether the registry is empty.voidsetEntries(TagKey<T> tag, List<RegistryEntry<T>> entries) Methods inherited from interface net.minecraft.util.collection.IndexedIterable
get, getOrThrow, getRawIdOrThrow, sizeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface net.minecraft.registry.Registry
contains, containsId, createEntry, freeze, get, get, getCodec, getDefaultEntry, getEntry, getEntry, getEntry, getEntryCodec, getEntryInfo, getEntrySet, getId, getIds, getIndexedEntries, getKey, getKey, getKeys, getOptionalValue, getOptionalValue, getRandom, getRandomEntry, getRawId, getValueOrThrow, iterateEntries, keys, startTagReload, stream, streamTagsMethods inherited from interface net.minecraft.registry.RegistryEntryLookup
getOptional, getOptional, getOrThrow, getOrThrowMethods inherited from interface net.minecraft.registry.entry.RegistryEntryOwner
ownerEqualsMethods inherited from interface net.minecraft.registry.RegistryWrapper
getTags, streamEntries, streamKeys, streamTagKeysMethods inherited from interface net.minecraft.registry.RegistryWrapper.Impl
getLifecycle, withFeatureFilter, withPredicateFilter
-
Method Details
-
add
- 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 aLkn;a(Laku;Ljava/lang/Object;Lkd;)Ljr$c;
-
setEntries
- 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 aLkn;a(Laxf;Ljava/util/List;)V
-
isEmpty
boolean isEmpty()Returns whether the registry is empty.- 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 mLkn;m()Z
-
createMutableRegistryLookup
RegistryEntryLookup<T> createMutableRegistryLookup()- 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 pLkn;p()Ljs;
-