Class DynamicRegistryManager.Impl

java.lang.Object
net.minecraft.util.registry.DynamicRegistryManager
net.minecraft.util.registry.DynamicRegistryManager.Impl
Enclosing class:
DynamicRegistryManager

public static final class DynamicRegistryManager.Impl extends DynamicRegistryManager
An immutable implementation of the dynamic registry manager, representing a specialized configuration of registries. It has a codec that allows conversion from and to data pack JSON or packet NBT.
Mappings:
Namespace Name
official gx$b
intermediary net/minecraft/class_5455$class_5457
named net/minecraft/util/registry/DynamicRegistryManager$Impl
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<DynamicRegistryManager.Impl> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lgx$b;a:Lcom/mojang/serialization/Codec;
      intermediary field_25923 Lnet/minecraft/class_5455$class_5457;field_25923:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;CODEC:Lcom/mojang/serialization/Codec;
    • registries

      private final Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries
      Mappings:
      Namespace Name Mixin selector
      official b Lgx$b;b:Ljava/util/Map;
      intermediary field_25924 Lnet/minecraft/class_5455$class_5457;field_25924:Ljava/util/Map;
      named registries Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;registries:Ljava/util/Map;
  • Constructor Details

    • Impl

      public Impl()
    • Impl

      private Impl(Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgx$b;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_5455$class_5457;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;<init>(Ljava/util/Map;)V
  • Method Details

    • setupCodec

      private static <E> com.mojang.serialization.Codec<DynamicRegistryManager.Impl> setupCodec()
      Mappings:
      Namespace Name Mixin selector
      official b Lgx$b;b()Lcom/mojang/serialization/Codec;
      intermediary method_30546 Lnet/minecraft/class_5455$class_5457;method_30546()Lcom/mojang/serialization/Codec;
      named setupCodec Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;setupCodec()Lcom/mojang/serialization/Codec;
    • fromRegistryCodecs

      private static <K extends RegistryKey<? extends Registry<?>>, V extends SimpleRegistry<?>> com.mojang.serialization.Codec<DynamicRegistryManager.Impl> fromRegistryCodecs(com.mojang.serialization.codecs.UnboundedMapCodec<K,V> unboundedMapCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lgx$b;a(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
      intermediary method_30538 Lnet/minecraft/class_5455$class_5457;method_30538(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
      named fromRegistryCodecs Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;fromRegistryCodecs(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
    • getDataResultForCodec

      private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getDataResultForCodec(RegistryKey<? extends Registry<E>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official e Lgx$b;e(Lwv;)Lcom/mojang/serialization/DataResult;
      intermediary method_30547 Lnet/minecraft/class_5455$class_5457;method_30547(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/DataResult;
      named getDataResultForCodec Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;getDataResultForCodec(Lnet/minecraft/util/registry/RegistryKey;)Lcom/mojang/serialization/DataResult;
    • createRegistry

      private static <E> SimpleRegistry<?> createRegistry(RegistryKey<? extends Registry<?>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official f Lgx$b;f(Lwv;)Lgr;
      intermediary method_30548 Lnet/minecraft/class_5455$class_5457;method_30548(Lnet/minecraft/class_5321;)Lnet/minecraft/class_2370;
      named createRegistry Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;createRegistry(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/SimpleRegistry;
    • getOptionalMutable

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