Class DynamicRegistryManager.ImmutableImpl

java.lang.Object
net.minecraft.registry.DynamicRegistryManager.ImmutableImpl
All Implemented Interfaces:
DynamicRegistryManager, RegistryEntryLookup.RegistryLookup, RegistryWrapper.WrapperLookup
Enclosing interface:
DynamicRegistryManager

public static class DynamicRegistryManager.ImmutableImpl extends Object implements DynamicRegistryManager
Mappings:
Namespace Name
named net/minecraft/registry/DynamicRegistryManager$ImmutableImpl
intermediary net/minecraft/class_5455$class_6891
official ke$c
  • Field Details

    • registries

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

    • ImmutableImpl

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

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

      public ImmutableImpl(Stream<DynamicRegistryManager.Entry<?>> entryStream)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/registry/DynamicRegistryManager$ImmutableImpl;<init>(Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_5455$class_6891;<init>(Ljava/util/stream/Stream;)V
      official <init> Lke$c;<init>(Ljava/util/stream/Stream;)V
  • Method Details

    • getOptional

      public <E> Optional<Registry<E>> getOptional(RegistryKey<? extends Registry<? extends E>> registryRef)
      Specified by:
      getOptional in interface DynamicRegistryManager
      Specified by:
      getOptional in interface RegistryEntryLookup.RegistryLookup
      Specified by:
      getOptional in interface RegistryWrapper.WrapperLookup
      Mappings:
      Namespace Name Mixin selector
      named getOptional Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_46759 Lnet/minecraft/class_7871$class_7872;method_46759(Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official a Ljr$a;a(Laly;)Ljava/util/Optional;
    • streamAllRegistries

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