Interface MutableRegistry<T>

All Superinterfaces:
IndexedIterable<T>, Iterable<T>, com.mojang.serialization.Keyable, Registry<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
official jc
intermediary net/minecraft/class_2385
named net/minecraft/registry/MutableRegistry
  • Method Details

    • add

      RegistryEntry.Reference<T> add(RegistryKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle)
      Mappings:
      Namespace Name Mixin selector
      official a Ljc;a(Lahf;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lih$c;
      intermediary method_10272 Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_6880$class_6883;
      named add Lnet/minecraft/registry/MutableRegistry;add(Lnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
    • isEmpty

      boolean isEmpty()
      Returns whether the registry is empty.
      Returns:
      whether the registry is empty
      Mappings:
      Namespace Name Mixin selector
      official k Ljc;k()Z
      intermediary method_35863 Lnet/minecraft/class_2385;method_35863()Z
      named isEmpty Lnet/minecraft/registry/MutableRegistry;isEmpty()Z
    • createMutableEntryLookup

      RegistryEntryLookup<T> createMutableEntryLookup()
      Mappings:
      Namespace Name Mixin selector
      official n Ljc;n()Lii;
      intermediary method_46769 Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;
      named createMutableEntryLookup Lnet/minecraft/registry/MutableRegistry;createMutableEntryLookup()Lnet/minecraft/registry/RegistryEntryLookup;