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

public interface MutableRegistry<T> extends Registry<T>
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 km
  • 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 Lkm;a(Laly;Ljava/lang/Object;Lkc;)Ljq$c;
    • setEntries

      void setEntries(TagKey<T> tag, List<RegistryEntry<T>> entries)
      Mappings:
      Namespace Name Mixin selector
      named setEntries Lnet/minecraft/registry/MutableRegistry;setEntries(Lnet/minecraft/registry/tag/TagKey;Ljava/util/List;)V
      intermediary method_62681 Lnet/minecraft/class_2385;method_62681(Lnet/minecraft/class_6862;Ljava/util/List;)V
      official a Lkm;a(Layk;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 isEmpty Lnet/minecraft/registry/MutableRegistry;isEmpty()Z
      intermediary method_35863 Lnet/minecraft/class_2385;method_35863()Z
      official m Lkm;m()Z
    • createMutableRegistryLookup

      RegistryEntryLookup<T> createMutableRegistryLookup()
      Mappings:
      Namespace Name Mixin selector
      named createMutableRegistryLookup Lnet/minecraft/registry/MutableRegistry;createMutableRegistryLookup()Lnet/minecraft/registry/RegistryEntryLookup;
      intermediary method_46769 Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;
      official p Lkm;p()Ljr;