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 gy$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 Lgy$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 Lgy$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> Lgy$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 c Lgy$b;c()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 Lgy$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 Lgy$b;e(Lyg;)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;
    • method_39199

      public static DynamicRegistryManager method_39199(com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy$b;a(Lcom/mojang/serialization/Dynamic;)Lgy;
      intermediary method_39199 Lnet/minecraft/class_5455$class_5457;method_39199(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_5455;
      named method_39199 Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;method_39199(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/util/registry/DynamicRegistryManager;
    • method_39201

      private static <E> SimpleRegistry<?> method_39201(RegistryKey<? extends Registry<?>> registryKey, com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official a Lgy$b;a(Lyg;Lcom/mojang/serialization/Dynamic;)Lgs;
      intermediary method_39201 Lnet/minecraft/class_5455$class_5457;method_39201(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_2370;
      named method_39201 Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;method_39201(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/util/registry/SimpleRegistry;
    • createRegistry

      private static <E> SimpleRegistry<?> createRegistry(RegistryKey<? extends Registry<?>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      official f Lgy$b;f(Lyg;)Lgs;
      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 Lgy;a(Lyg;)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;