Class RegistryLoader

java.lang.Object
net.minecraft.registry.RegistryLoader

public class RegistryLoader extends Object
Mappings:
Namespace Name
named net/minecraft/registry/RegistryLoader
intermediary net/minecraft/class_7655
official akl
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/registry/RegistryLoader;LOGGER:Lorg/slf4j/Logger;
      intermediary field_39970 Lnet/minecraft/class_7655;field_39970:Lorg/slf4j/Logger;
      official d Lakl;d:Lorg/slf4j/Logger;
    • EXPERIMENTAL_ENTRY_INFO

      private static final RegistryEntryInfo EXPERIMENTAL_ENTRY_INFO
      Mappings:
      Namespace Name Mixin selector
      named EXPERIMENTAL_ENTRY_INFO Lnet/minecraft/registry/RegistryLoader;EXPERIMENTAL_ENTRY_INFO:Lnet/minecraft/registry/entry/RegistryEntryInfo;
      intermediary field_49024 Lnet/minecraft/class_7655;field_49024:Lnet/minecraft/class_9248;
      official e Lakl;e:Ljy;
    • RESOURCE_ENTRY_INFO_GETTER

      private static final Function<Optional<VersionedIdentifier>,RegistryEntryInfo> RESOURCE_ENTRY_INFO_GETTER
      Mappings:
      Namespace Name Mixin selector
      named RESOURCE_ENTRY_INFO_GETTER Lnet/minecraft/registry/RegistryLoader;RESOURCE_ENTRY_INFO_GETTER:Ljava/util/function/Function;
      intermediary field_49025 Lnet/minecraft/class_7655;field_49025:Ljava/util/function/Function;
      official f Lakl;f:Ljava/util/function/Function;
    • DYNAMIC_REGISTRIES

      public static final List<RegistryLoader.Entry<?>> DYNAMIC_REGISTRIES
      Mappings:
      Namespace Name Mixin selector
      named DYNAMIC_REGISTRIES Lnet/minecraft/registry/RegistryLoader;DYNAMIC_REGISTRIES:Ljava/util/List;
      intermediary field_39968 Lnet/minecraft/class_7655;field_39968:Ljava/util/List;
      official a Lakl;a:Ljava/util/List;
    • DIMENSION_REGISTRIES

      public static final List<RegistryLoader.Entry<?>> DIMENSION_REGISTRIES
      Mappings:
      Namespace Name Mixin selector
      named DIMENSION_REGISTRIES Lnet/minecraft/registry/RegistryLoader;DIMENSION_REGISTRIES:Ljava/util/List;
      intermediary field_39969 Lnet/minecraft/class_7655;field_39969:Ljava/util/List;
      official b Lakl;b:Ljava/util/List;
    • SYNCED_REGISTRIES

      public static final List<RegistryLoader.Entry<?>> SYNCED_REGISTRIES
      Mappings:
      Namespace Name Mixin selector
      named SYNCED_REGISTRIES Lnet/minecraft/registry/RegistryLoader;SYNCED_REGISTRIES:Ljava/util/List;
      intermediary field_48709 Lnet/minecraft/class_7655;field_48709:Ljava/util/List;
      official c Lakl;c:Ljava/util/List;
  • Constructor Details

    • RegistryLoader

      public RegistryLoader()
  • Method Details

    • loadFromResource

      public static DynamicRegistryManager.Immutable loadFromResource(ResourceManager resourceManager, DynamicRegistryManager registryManager, List<RegistryLoader.Entry<?>> entries)
      Mappings:
      Namespace Name Mixin selector
      named loadFromResource Lnet/minecraft/registry/RegistryLoader;loadFromResource(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/List;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_56515 Lnet/minecraft/class_7655;method_56515(Lnet/minecraft/class_3300;Lnet/minecraft/class_5455;Ljava/util/List;)Lnet/minecraft/class_5455$class_6890;
      official a Lakl;a(Laud;Lka;Ljava/util/List;)Lka$b;
    • loadFromNetwork

      Mappings:
      Namespace Name Mixin selector
      named loadFromNetwork Lnet/minecraft/registry/RegistryLoader;loadFromNetwork(Ljava/util/Map;Lnet/minecraft/resource/ResourceFactory;Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/List;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_56519 Lnet/minecraft/class_7655;method_56519(Ljava/util/Map;Lnet/minecraft/class_5912;Lnet/minecraft/class_5455;Ljava/util/List;)Lnet/minecraft/class_5455$class_6890;
      official a Lakl;a(Ljava/util/Map;Laug;Lka;Ljava/util/List;)Lka$b;
    • load

      private static DynamicRegistryManager.Immutable load(RegistryLoader.RegistryLoadable loadable, DynamicRegistryManager baseRegistryManager, List<RegistryLoader.Entry<?>> entries)
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/registry/RegistryLoader;load(Lnet/minecraft/registry/RegistryLoader$RegistryLoadable;Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/List;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_45121 Lnet/minecraft/class_7655;method_45121(Lnet/minecraft/class_7655$class_7656;Lnet/minecraft/class_5455;Ljava/util/List;)Lnet/minecraft/class_5455$class_6890;
      official a Lakl;a(Lakl$b;Lka;Ljava/util/List;)Lka$b;
    • createInfoGetter

      private static RegistryOps.RegistryInfoGetter createInfoGetter(DynamicRegistryManager baseRegistryManager, List<RegistryLoader.Loader<?>> additionalRegistries)
      Mappings:
      Namespace Name Mixin selector
      named createInfoGetter Lnet/minecraft/registry/RegistryLoader;createInfoGetter(Lnet/minecraft/registry/DynamicRegistryManager;Ljava/util/List;)Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;
      intermediary method_46619 Lnet/minecraft/class_7655;method_46619(Lnet/minecraft/class_5455;Ljava/util/List;)Lnet/minecraft/class_6903$class_7863;
      official a Lakl;a(Lka;Ljava/util/List;)Lako$c;
    • createInfo

      private static <T> RegistryOps.RegistryInfo<T> createInfo(MutableRegistry<T> registry)
      Mappings:
      Namespace Name Mixin selector
      named createInfo Lnet/minecraft/registry/RegistryLoader;createInfo(Lnet/minecraft/registry/MutableRegistry;)Lnet/minecraft/registry/RegistryOps$RegistryInfo;
      intermediary method_46620 Lnet/minecraft/class_7655;method_46620(Lnet/minecraft/class_2385;)Lnet/minecraft/class_6903$class_7862;
      official a Lakl;a(Lki;)Lako$b;
    • createInfo

      private static <T> RegistryOps.RegistryInfo<T> createInfo(Registry<T> registry)
      Mappings:
      Namespace Name Mixin selector
      named createInfo Lnet/minecraft/registry/RegistryLoader;createInfo(Lnet/minecraft/registry/Registry;)Lnet/minecraft/registry/RegistryOps$RegistryInfo;
      intermediary method_46618 Lnet/minecraft/class_7655;method_46618(Lnet/minecraft/class_2378;)Lnet/minecraft/class_6903$class_7862;
      official a Lakl;a(Ljz;)Lako$b;
    • writeLoadingError

      private static void writeLoadingError(Map<RegistryKey<?>,Exception> exceptions)
      Mappings:
      Namespace Name Mixin selector
      named writeLoadingError Lnet/minecraft/registry/RegistryLoader;writeLoadingError(Ljava/util/Map;)V
      intermediary method_45126 Lnet/minecraft/class_7655;method_45126(Ljava/util/Map;)V
      official a Lakl;a(Ljava/util/Map;)V
    • parseAndAdd

      private static <E> void parseAndAdd(MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> decoder, RegistryOps<JsonElement> ops, RegistryKey<E> key, Resource resource, RegistryEntryInfo entryInfo) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named parseAndAdd Lnet/minecraft/registry/RegistryLoader;parseAndAdd(Lnet/minecraft/registry/MutableRegistry;Lcom/mojang/serialization/Decoder;Lnet/minecraft/registry/RegistryOps;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/resource/Resource;Lnet/minecraft/registry/entry/RegistryEntryInfo;)V
      intermediary method_56915 Lnet/minecraft/class_7655;method_56915(Lnet/minecraft/class_2385;Lcom/mojang/serialization/Decoder;Lnet/minecraft/class_6903;Lnet/minecraft/class_5321;Lnet/minecraft/class_3298;Lnet/minecraft/class_9248;)V
      official a Lakl;a(Lki;Lcom/mojang/serialization/Decoder;Lako;Lakp;Laub;Ljy;)V
    • loadFromResource

      static <E> void loadFromResource(ResourceManager resourceManager, RegistryOps.RegistryInfoGetter infoGetter, MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> elementDecoder, Map<RegistryKey<?>,Exception> errors)
      Mappings:
      Namespace Name Mixin selector
      named loadFromResource Lnet/minecraft/registry/RegistryLoader;loadFromResource(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;Lnet/minecraft/registry/MutableRegistry;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
      intermediary method_45122 Lnet/minecraft/class_7655;method_45122(Lnet/minecraft/class_3300;Lnet/minecraft/class_6903$class_7863;Lnet/minecraft/class_2385;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
      official a Lakl;a(Laud;Lako$c;Lki;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
    • loadFromNetwork

      static <E> void loadFromNetwork(Map<RegistryKey<? extends Registry<?>>,List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, RegistryOps.RegistryInfoGetter infoGetter, MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> decoder, Map<RegistryKey<?>,Exception> loadingErrors)
      Mappings:
      Namespace Name Mixin selector
      named loadFromNetwork Lnet/minecraft/registry/RegistryLoader;loadFromNetwork(Ljava/util/Map;Lnet/minecraft/resource/ResourceFactory;Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;Lnet/minecraft/registry/MutableRegistry;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
      intermediary method_56518 Lnet/minecraft/class_7655;method_56518(Ljava/util/Map;Lnet/minecraft/class_5912;Lnet/minecraft/class_6903$class_7863;Lnet/minecraft/class_2385;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
      official a Lakl;a(Ljava/util/Map;Laug;Lako$c;Lki;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V