Class DynamicRegistryManager.MutableImpl

java.lang.Object
net.minecraft.util.registry.DynamicRegistryManager.MutableImpl
All Implemented Interfaces:
DynamicRegistryManager, DynamicRegistryManager.Mutable
Enclosing interface:
DynamicRegistryManager

public static final class DynamicRegistryManager.MutableImpl extends Object implements DynamicRegistryManager.Mutable
Mappings:
Namespace Name
official hn$f
intermediary net/minecraft/class_5455$class_6894
named net/minecraft/util/registry/DynamicRegistryManager$MutableImpl
  • Field Details

    • mutableRegistries

      private final Map<? extends RegistryKey<? extends Registry<?>>,? extends MutableRegistry<?>> mutableRegistries
      Mappings:
      Namespace Name Mixin selector
      official e Lhn$f;e:Ljava/util/Map;
      intermediary field_36472 Lnet/minecraft/class_5455$class_6894;field_36472:Ljava/util/Map;
      named mutableRegistries Lnet/minecraft/util/registry/DynamicRegistryManager$MutableImpl;mutableRegistries:Ljava/util/Map;
  • Constructor Details

    • MutableImpl

      MutableImpl(Map<? extends RegistryKey<? extends Registry<?>>,? extends MutableRegistry<?>> mutableRegistries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhn$f;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_5455$class_6894;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/util/registry/DynamicRegistryManager$MutableImpl;<init>(Ljava/util/Map;)V
  • Method Details

    • getOptionalManaged

      public <E> Optional<Registry<E>> getOptionalManaged(RegistryKey<? extends Registry<? extends E>> key)
      Retrieves a registry optionally from this manager.
      Specified by:
      getOptionalManaged in interface DynamicRegistryManager
      Mappings:
      Namespace Name Mixin selector
      official a Lhn;a(Laba;)Ljava/util/Optional;
      intermediary method_30527 Lnet/minecraft/class_5455;method_30527(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getOptionalManaged Lnet/minecraft/util/registry/DynamicRegistryManager;getOptionalManaged(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
    • getOptionalMutable

      public <E> Optional<MutableRegistry<E>> getOptionalMutable(RegistryKey<? extends Registry<? extends E>> key)
      Specified by:
      getOptionalMutable in interface DynamicRegistryManager.Mutable
      Mappings:
      Namespace Name Mixin selector
      official f Lhn$e;f(Laba;)Ljava/util/Optional;
      intermediary method_40333 Lnet/minecraft/class_5455$class_6893;method_40333(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      named getOptionalMutable Lnet/minecraft/util/registry/DynamicRegistryManager$Mutable;getOptionalMutable(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
    • streamManagedRegistries

      public Stream<DynamicRegistryManager.Entry<?>> streamManagedRegistries()
      Specified by:
      streamManagedRegistries in interface DynamicRegistryManager
      Mappings:
      Namespace Name Mixin selector
      official b Lhn;b()Ljava/util/stream/Stream;
      intermediary method_40308 Lnet/minecraft/class_5455;method_40308()Ljava/util/stream/Stream;
      named streamManagedRegistries Lnet/minecraft/util/registry/DynamicRegistryManager;streamManagedRegistries()Ljava/util/stream/Stream;