Package net.minecraft.registry
Class RegistryLoader
java.lang.Object
net.minecraft.registry.RegistryLoader
- Mappings:
Namespace Name named net/minecraft/registry/RegistryLoader
intermediary net/minecraft/class_7655
official akm
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
private static final record
private static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final List
<RegistryLoader.Entry<?>> static final List
<RegistryLoader.Entry<?>> private static final RegistryEntryInfo
private static final Logger
private static final Function
<Optional<VersionedIdentifier>, RegistryEntryInfo> static final List
<RegistryLoader.Entry<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> RegistryOps.RegistryInfo
<T> createInfo
(MutableRegistry<T> registry) private static <T> RegistryOps.RegistryInfo
<T> createInfo
(Registry<T> registry) private static RegistryOps.RegistryInfoGetter
createInfoGetter
(DynamicRegistryManager baseRegistryManager, List<RegistryLoader.Loader<?>> additionalRegistries) private static DynamicRegistryManager.Immutable
load
(RegistryLoader.RegistryLoadable loadable, DynamicRegistryManager baseRegistryManager, List<RegistryLoader.Entry<?>> entries) loadFromNetwork
(Map<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, DynamicRegistryManager registryManager, List<RegistryLoader.Entry<?>> entries) (package private) 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) loadFromResource
(ResourceManager resourceManager, DynamicRegistryManager registryManager, List<RegistryLoader.Entry<?>> entries) (package private) static <E> void
loadFromResource
(ResourceManager resourceManager, RegistryOps.RegistryInfoGetter infoGetter, MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> elementDecoder, Map<RegistryKey<?>, Exception> errors) private static <E> void
parseAndAdd
(MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> decoder, RegistryOps<JsonElement> ops, RegistryKey<E> key, Resource resource, RegistryEntryInfo entryInfo) private static void
writeLoadingError
(Map<RegistryKey<?>, Exception> exceptions)
-
Field Details
-
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
Lakm;d:Lorg/slf4j/Logger;
-
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
Lakm;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
Lakm;f:Ljava/util/function/Function;
-
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
Lakm;a:Ljava/util/List;
-
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
Lakm;b:Ljava/util/List;
-
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
Lakm;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
Lakm;a(Laue;Lka;Ljava/util/List;)Lka$b;
-
loadFromNetwork
public static DynamicRegistryManager.Immutable loadFromNetwork(Map<RegistryKey<? extends Registry<?>>, List<SerializableRegistries.SerializedRegistryEntry>> data, ResourceFactory factory, DynamicRegistryManager registryManager, List<RegistryLoader.Entry<?>> entries) - 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
Lakm;a(Ljava/util/Map;Lauh;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
Lakm;a(Lakm$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
Lakm;a(Lka;Ljava/util/List;)Lakp$c;
-
createInfo
- 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
Lakm;a(Lki;)Lakp$b;
-
createInfo
- 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
Lakm;a(Ljz;)Lakp$b;
-
writeLoadingError
- 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
Lakm;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
Lakm;a(Lki;Lcom/mojang/serialization/Decoder;Lakp;Lakq;Lauc;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
Lakm;a(Laue;Lakp$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
Lakm;a(Ljava/util/Map;Lauh;Lakp$c;Lki;Lcom/mojang/serialization/Decoder;Ljava/util/Map;)V
-