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 alu
  • 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 Lalu;d:Lorg/slf4j/Logger;
    • KEY_COMPARATOR

      private static final Comparator<RegistryKey<?>> KEY_COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      named KEY_COMPARATOR Lnet/minecraft/registry/RegistryLoader;KEY_COMPARATOR:Ljava/util/Comparator;
      intermediary field_53753 Lnet/minecraft/class_7655;field_53753:Ljava/util/Comparator;
      official e Lalu;e:Ljava/util/Comparator;
    • 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 f Lalu;f:Lkc;
    • 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 g Lalu;g: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 Lalu;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 Lalu;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 Lalu;c:Ljava/util/List;
  • Constructor Details

    • RegistryLoader

      public RegistryLoader()
  • Method Details

    • loadFromResource

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

      public static DynamicRegistryManager.Immutable loadFromNetwork(Map<RegistryKey<? extends Registry<?>>,RegistryLoader.ElementsAndTags> data, ResourceFactory factory, List<RegistryWrapper.Impl<?>> registries, List<RegistryLoader.Entry<?>> entries)
      Mappings:
      Namespace Name Mixin selector
      named loadFromNetwork Lnet/minecraft/registry/RegistryLoader;loadFromNetwork(Ljava/util/Map;Lnet/minecraft/resource/ResourceFactory;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_56519 Lnet/minecraft/class_7655;method_56519(Ljava/util/Map;Lnet/minecraft/class_5912;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/class_5455$class_6890;
      official a Lalu;a(Ljava/util/Map;Lavy;Ljava/util/List;Ljava/util/List;)Lke$b;
    • load

      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/registry/RegistryLoader;load(Lnet/minecraft/registry/RegistryLoader$RegistryLoadable;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
      intermediary method_45121 Lnet/minecraft/class_7655;method_45121(Lnet/minecraft/class_7655$class_7656;Ljava/util/List;Ljava/util/List;)Lnet/minecraft/class_5455$class_6890;
      official a Lalu;a(Lalu$b;Ljava/util/List;Ljava/util/List;)Lke$b;
    • createInfoGetter

      private static RegistryOps.RegistryInfoGetter createInfoGetter(List<RegistryWrapper.Impl<?>> registries, List<RegistryLoader.Loader<?>> additionalRegistries)
      Mappings:
      Namespace Name Mixin selector
      named createInfoGetter Lnet/minecraft/registry/RegistryLoader;createInfoGetter(Ljava/util/List;Ljava/util/List;)Lnet/minecraft/registry/RegistryOps$RegistryInfoGetter;
      intermediary method_46619 Lnet/minecraft/class_7655;method_46619(Ljava/util/List;Ljava/util/List;)Lnet/minecraft/class_6903$class_7863;
      official a Lalu;a(Ljava/util/List;Ljava/util/List;)Lalx$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 Lalu;a(Lkm;)Lalx$b;
    • createInfo

      private static <T> RegistryOps.RegistryInfo<T> createInfo(RegistryWrapper.Impl<T> registry)
      Mappings:
      Namespace Name Mixin selector
      named createInfo Lnet/minecraft/registry/RegistryLoader;createInfo(Lnet/minecraft/registry/RegistryWrapper$Impl;)Lnet/minecraft/registry/RegistryOps$RegistryInfo;
      intermediary method_46618 Lnet/minecraft/class_7655;method_46618(Lnet/minecraft/class_7225$class_7226;)Lnet/minecraft/class_6903$class_7862;
      official a Lalu;a(Ljs$b;)Lalx$b;
    • writeAndCreateLoadingException

      private static CrashException writeAndCreateLoadingException(Map<RegistryKey<?>,Exception> exceptions)
      Mappings:
      Namespace Name Mixin selector
      named writeAndCreateLoadingException Lnet/minecraft/registry/RegistryLoader;writeAndCreateLoadingException(Ljava/util/Map;)Lnet/minecraft/util/crash/CrashException;
      intermediary method_45126 Lnet/minecraft/class_7655;method_45126(Ljava/util/Map;)Lnet/minecraft/class_148;
      official a Lalu;a(Ljava/util/Map;)Lz;
    • 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_62809 Lnet/minecraft/class_7655;method_62809(Ljava/util/Map;)V
      official b Lalu;b(Ljava/util/Map;)V
    • createLoadingException

      private static CrashException createLoadingException(Map<RegistryKey<?>,Exception> exceptions)
      Mappings:
      Namespace Name Mixin selector
      named createLoadingException Lnet/minecraft/registry/RegistryLoader;createLoadingException(Ljava/util/Map;)Lnet/minecraft/util/crash/CrashException;
      intermediary method_62810 Lnet/minecraft/class_7655;method_62810(Ljava/util/Map;)Lnet/minecraft/class_148;
      official c Lalu;c(Ljava/util/Map;)Lz;
    • 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 Lalu;a(Lkm;Lcom/mojang/serialization/Decoder;Lalx;Laly;Lavt;Lkc;)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 Lalu;a(Lavv;Lalx$c;Lkm;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
    • loadFromNetwork

      static <E> void loadFromNetwork(Map<RegistryKey<? extends Registry<?>>,RegistryLoader.ElementsAndTags> 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 Lalu;a(Ljava/util/Map;Lavy;Lalx$c;Lkm;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V