net.minecraft.registry

public class RegistryLoader

net.minecraft.resources.RegistryDataLoader
net.minecraft.class_7655
net.minecraft.registry.RegistryLoader

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_39970
LOGGER
private static final Comparator<RegistryKey<?>>
ERROR_KEY_COMPARATOR
field_53753
KEY_COMPARATOR
private static final RegistryEntryInfo
NETWORK_REGISTRATION_INFO
field_49024
EXPERIMENTAL_ENTRY_INFO
private static final Function<Optional<VersionedIdentifier>, RegistryEntryInfo>
REGISTRATION_INFO_CACHE
field_49025
RESOURCE_ENTRY_INFO_GETTER
public static final List<RegistryLoader$Entry<?>>
WORLDGEN_REGISTRIES
field_39968
DYNAMIC_REGISTRIES
public static final List<RegistryLoader$Entry<?>>
DIMENSION_REGISTRIES
field_39969
DIMENSION_REGISTRIES
public static final List<RegistryLoader$Entry<?>>
SYNCHRONIZED_REGISTRIES
field_48709
SYNCED_REGISTRIES

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static DynamicRegistryManager$Immutable
load(ResourceManager resourceManager, List<HolderLookup$RegistryLookup<?>> contextRegistries, List<RegistryDataLoader$RegistryData<?>> registriesToLoad)
method_56515(class_3300 arg0, List<class_7225$class_7226<?>> arg1, List<class_7655$class_7657<?>> arg2)
loadFromResource(ResourceManager resourceManager, List<RegistryWrapper$Impl<?>> registries, List<RegistryLoader$Entry<?>> entries)
public static DynamicRegistryManager$Immutable
load(Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader$NetworkedRegistryData> entries, ResourceProvider knownDataSource, List<HolderLookup$RegistryLookup<?>> contextRegistries, List<RegistryDataLoader$RegistryData<?>> registriesToLoad)
method_56519(Map<class_5321<? extends class_2378<?>>, class_7655$class_9841> arg0, class_5912 arg1, List<class_7225$class_7226<?>> arg2, List<class_7655$class_7657<?>> arg3)
loadFromNetwork(Map<RegistryKey<? extends Registry<?>>, RegistryLoader$ElementsAndTags> data, ResourceFactory factory, List<RegistryWrapper$Impl<?>> registries, List<RegistryLoader$Entry<?>> entries)
private static DynamicRegistryManager$Immutable
load(RegistryDataLoader$LoadingFunction loadingFunction, List<HolderLookup$RegistryLookup<?>> contextRegistries, List<RegistryDataLoader$RegistryData<?>> registriesToLoad)
method_45121(class_7655$class_7656 arg0, List<class_7225$class_7226<?>> arg1, List<class_7655$class_7657<?>> arg2)
load(RegistryLoader$RegistryLoadable loadable, List<RegistryWrapper$Impl<?>> registries, List<RegistryLoader$Entry<?>> entries)
private static RegistryOps$RegistryInfoGetter
createContext(List<HolderLookup$RegistryLookup<?>> contextRegistries, List<RegistryDataLoader$Loader<?>> newRegistriesAndLoaders)
method_46619(List<class_7225$class_7226<?>> arg0, List<class_7655$class_9158<?>> arg1)
createInfoGetter(List<RegistryWrapper$Impl<?>> registries, List<RegistryLoader$Loader<?>> additionalRegistries)
private static <T> RegistryOps$RegistryInfo<T>
createInfoForNewRegistry(WritableRegistry<T> e)
method_46620(class_2385<T> arg0)
createInfo(MutableRegistry<T> registry)
private static <T> RegistryOps$RegistryInfo<T>
createInfoForContextRegistry(HolderLookup$RegistryLookup<T> lookup)
method_46618(class_7225$class_7226<T> arg0)
createInfo(RegistryWrapper$Impl<T> registry)
private static CrashException
logErrors(Map<ResourceKey<?>, Exception> loadingErrors)
method_45126(Map<class_5321<?>, Exception> arg0)
writeAndCreateLoadingException(Map<RegistryKey<?>, Exception> exceptions)
private static void
printFullDetailsToLog(Map<ResourceKey<?>, Exception> loadingErrors)
method_62809(Map<class_5321<?>, Exception> arg0)
writeLoadingError(Map<RegistryKey<?>, Exception> exceptions)
private static CrashException
createReportWithBriefInfo(Map<ResourceKey<?>, Exception> loadingErrors)
method_62810(Map<class_5321<?>, Exception> arg0)
createLoadingException(Map<RegistryKey<?>, Exception> exceptions)
private static <E> void
loadElementFromResource(WritableRegistry<E> output, com.mojang.serialization.Decoder<E> elementDecoder, RegistryOps<com.google.gson.JsonElement> ops, ResourceKey<E> elementKey, Resource thunk, RegistrationInfo registrationInfo)
method_56915(class_2385<E> arg0, com.mojang.serialization.Decoder<E> arg1, class_6903<com.google.gson.JsonElement> arg2, class_5321<E> arg3, class_3298 arg4, class_9248 arg5)
parseAndAdd(MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> decoder, RegistryOps<com.google.gson.JsonElement> ops, RegistryKey<E> key, Resource resource, RegistryEntryInfo entryInfo)
private static <E> void
loadContentsFromManager(ResourceManager resourceManager, RegistryOps$RegistryInfoLookup lookup, WritableRegistry<E> registry, com.mojang.serialization.Decoder<E> elementDecoder, Map<ResourceKey<?>, Exception> loadingErrors)
method_45122(class_3300 arg0, class_6903$class_7863 arg1, class_2385<E> arg2, com.mojang.serialization.Decoder<E> arg3, Map<class_5321<?>, Exception> arg4)
loadFromResource(ResourceManager resourceManager, RegistryOps$RegistryInfoGetter infoGetter, MutableRegistry<E> registry, com.mojang.serialization.Decoder<E> elementDecoder, Map<RegistryKey<?>, Exception> errors)
private static <E> void
loadContentsFromNetwork(Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader$NetworkedRegistryData> entries, ResourceProvider knownDataSource, RegistryOps$RegistryInfoLookup lookup, WritableRegistry<E> registry, com.mojang.serialization.Decoder<E> elementDecoder, Map<ResourceKey<?>, Exception> loadingErrors)
method_56518(Map<class_5321<? extends class_2378<?>>, class_7655$class_9841> arg0, class_5912 arg1, class_6903$class_7863 arg2, class_2385<E> arg3, com.mojang.serialization.Decoder<E> arg4, Map<class_5321<?>, Exception> arg5)
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)
private static String
lambda$createReportWithBriefInfo$14(Map arg0)
method_62811(Map arg0)
method_62811(Map arg0)
private static void
lambda$createReportWithBriefInfo$13(StringBuilder arg0, Map$Entry arg1)
method_62805(StringBuilder arg0, Map$Entry arg1)
method_62805(StringBuilder arg0, Map$Entry entry)
private static void
lambda$printFullDetailsToLog$12(PrintWriter arg0, Map$Entry arg1)
method_62804(PrintWriter arg0, Map$Entry arg1)
method_62804(PrintWriter arg0, Map$Entry entry)
private static void
lambda$printFullDetailsToLog$11(PrintWriter arg0, Map$Entry arg1)
method_62807(PrintWriter arg0, Map$Entry arg1)
method_62807(PrintWriter arg0, Map$Entry element)
private static Identifier
lambda$printFullDetailsToLog$10(Map$Entry arg0)
method_62806(Map$Entry arg0)
method_62806(Map$Entry arg0)
private static Identifier
lambda$printFullDetailsToLog$9(Map$Entry arg0)
method_62808(Map$Entry arg0)
method_62808(Map$Entry entry)
private static void
lambda$createContext$8(Map arg0, RegistryDataLoader$Loader arg1)
method_46621(Map arg0, class_7655$class_9158 arg1)
method_46621(Map arg0, RegistryLoader$Loader loader)
private static void
lambda$createContext$7(Map arg0, HolderLookup$RegistryLookup arg1)
method_46622(Map arg0, class_7225$class_7226 arg1)
method_46622(Map arg0, RegistryWrapper$Impl registry)
private static void
lambda$load$6(Map arg0, RegistryDataLoader$Loader arg1)
method_45128(Map arg0, class_7655$class_9158 arg1)
method_45128(Map arg0, RegistryLoader$Loader loader)
private static void
lambda$load$5(RegistryDataLoader$LoadingFunction arg0, RegistryOps$RegistryInfoLookup arg1, RegistryDataLoader$Loader arg2)
method_45120(class_7655$class_7656 arg0, class_6903$class_7863 arg1, class_7655$class_9158 arg2)
method_45120(RegistryLoader$RegistryLoadable arg0, RegistryOps$RegistryInfoGetter arg1, RegistryLoader$Loader loader)
private static RegistryLoader$Loader
lambda$load$4(Map arg0, RegistryDataLoader$RegistryData arg1)
method_45127(Map arg0, class_7655$class_7657 arg1)
method_45127(Map arg0, RegistryLoader$Entry entry)
private static void
lambda$load$3(Map arg0, ResourceProvider arg1, RegistryDataLoader$Loader arg2, RegistryOps$RegistryInfoLookup arg3)
method_56517(Map arg0, class_5912 arg1, class_7655$class_9158 arg2, class_6903$class_7863 arg3)
method_56517(Map arg0, ResourceFactory arg1, RegistryLoader$Loader loader, RegistryOps$RegistryInfoGetter infoGetter)
private static void
lambda$load$2(ResourceManager arg0, RegistryDataLoader$Loader arg1, RegistryOps$RegistryInfoLookup arg2)
method_56514(class_3300 arg0, class_7655$class_9158 arg1, class_6903$class_7863 arg2)
method_56514(ResourceManager arg0, RegistryLoader$Loader loader, RegistryOps$RegistryInfoGetter infoGetter)
private static RegistryEntryInfo
lambda$static$1(Optional arg0)
method_56914(Optional arg0)
method_56914(Optional knownPacks)
private static com.mojang.serialization.Lifecycle
lambda$static$0(Boolean arg0)
method_56913(Boolean arg0)
method_56913(Boolean vanilla)