Package net.minecraft.registry
Interface MutableRegistry<T>
- All Superinterfaces:
IndexedIterable<T>
,Iterable<T>
,com.mojang.serialization.Keyable
,Registry<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/MutableRegistry
intermediary net/minecraft/class_2385
official ke
-
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) boolean
isEmpty()
Returns whether the registry is empty.Methods inherited from interface net.minecraft.util.collection.IndexedIterable
get, getOrThrow, getRawIdOrThrow, size
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface net.minecraft.registry.Registry
clearTags, contains, containsId, createEntry, entryOf, freeze, get, get, getCodec, getEntry, getEntry, getEntry, getEntry, getEntryCodec, getEntryInfo, getEntryList, getEntryOwner, getEntrySet, getId, getIds, getIndexedEntries, getKey, getKey, getKeys, getLifecycle, getOrCreateEntryList, getOrEmpty, getOrEmpty, getOrThrow, getRandom, getRandomEntry, getRawId, getReadOnlyWrapper, getTagCreatingWrapper, iterateEntries, keys, populateTags, stream, streamEntries, streamTags, streamTagsAndEntries
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/registry/MutableRegistry;add(Lnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lnet/minecraft/registry/entry/RegistryEntryInfo;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
intermediary method_10272
Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lnet/minecraft/class_9248;)Lnet/minecraft/class_6880$class_6883;
official a
Lke;a(Lale;Ljava/lang/Object;Lju;)Lji$c;
-
isEmpty
boolean isEmpty()Returns whether the registry is empty.- Returns:
- whether the registry is empty
- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/registry/MutableRegistry;isEmpty()Z
intermediary method_35863
Lnet/minecraft/class_2385;method_35863()Z
official k
Lke;k()Z
-
createMutableEntryLookup
RegistryEntryLookup<T> createMutableEntryLookup()- Mappings:
Namespace Name Mixin selector named createMutableEntryLookup
Lnet/minecraft/registry/MutableRegistry;createMutableEntryLookup()Lnet/minecraft/registry/RegistryEntryLookup;
intermediary method_46769
Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;
official n
Lke;n()Ljj;
-