Class DynamicRegistryManager.ImmutableImpl

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

public static final class DynamicRegistryManager.ImmutableImpl extends Object implements DynamicRegistryManager.Immutable
Mappings:
Namespace Name
official hc$b
intermediary net/minecraft/class_5455$class_6891
named net/minecraft/util/registry/DynamicRegistryManager$ImmutableImpl
  • Field Details

    • registries

      private final Map<? extends RegistryKey<? extends Registry<?>>,? extends Registry<?>> registries
      Mappings:
      Namespace Name Mixin selector
      official e Lhc$b;e:Ljava/util/Map;
      intermediary field_36471 Lnet/minecraft/class_5455$class_6891;field_36471:Ljava/util/Map;
      named registries Lnet/minecraft/util/registry/DynamicRegistryManager$ImmutableImpl;registries:Ljava/util/Map;
  • Constructor Details

    • ImmutableImpl

      public ImmutableImpl(Map<? extends RegistryKey<? extends Registry<?>>,? extends Registry<?>> registries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhc$b;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_5455$class_6891;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/util/registry/DynamicRegistryManager$ImmutableImpl;<init>(Ljava/util/Map;)V
    • ImmutableImpl

      ImmutableImpl(Stream<DynamicRegistryManager.Entry<?>> stream)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhc$b;<init>(Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_5455$class_6891;<init>(Ljava/util/stream/Stream;)V
      named <init> Lnet/minecraft/util/registry/DynamicRegistryManager$ImmutableImpl;<init>(Ljava/util/stream/Stream;)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 Lhc;a(Lys;)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;
    • streamManagedRegistries

      public Stream<DynamicRegistryManager.Entry<?>> streamManagedRegistries()
      Specified by:
      streamManagedRegistries in interface DynamicRegistryManager
      Mappings:
      Namespace Name Mixin selector
      official b Lhc;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;