Class RegistryDataLoader
java.lang.Object
net.minecraft.resources.RegistryDataLoader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfacestatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<RegistryDataLoader.RegistryData<?>> private static final Comparator<ResourceKey<?>> private static final org.slf4j.Loggerstatic final List<RegistryDataLoader.RegistryData<?>> static final List<RegistryDataLoader.RegistryData<?>> static final List<RegistryDataLoader.RegistryData<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static RegistryOps.RegistryInfoLookupcreateContext(List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryLoadTask<?>> newRegistriesAndLoaders) private static ReportedExceptioncreateReportWithBriefInfo(Map<ResourceKey<?>, Exception> loadingErrors) load(Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader.NetworkedRegistryData> entries, ResourceProvider knownDataSource, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor) private static CompletableFuture<RegistryAccess.Frozen> load(RegistryDataLoader.LoaderFactory loaderFactory, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor, boolean fromResources) load(ResourceManager resourceManager, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor) Deprecated.load(ResourceManager resourceManager, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor, List<Registry.PendingTags<?>> pendingTags) private static ReportedExceptionlogErrors(Map<ResourceKey<?>, Exception> loadingErrors) private static voidprintFullDetailsToLog(Map<ResourceKey<?>, Exception> loadingErrors)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ERROR_KEY_COMPARATOR
-
WORLD_REGISTRIES
-
DIMENSION_REGISTRIES
-
RELOADABLE_REGISTRIES
-
SYNCHRONIZED_REGISTRIES
-
-
Constructor Details
-
RegistryDataLoader
public RegistryDataLoader()
-
-
Method Details
-
load
@Deprecated public static CompletableFuture<RegistryAccess.Frozen> load(ResourceManager resourceManager, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor) Deprecated.Neo: useload(ResourceManager, List, List, Executor, List)instead -
load
public static CompletableFuture<RegistryAccess.Frozen> load(ResourceManager resourceManager, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor, List<Registry.PendingTags<?>> pendingTags) -
load
public static CompletableFuture<RegistryAccess.Frozen> load(Map<ResourceKey<? extends Registry<?>>, RegistryDataLoader.NetworkedRegistryData> entries, ResourceProvider knownDataSource, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor) -
load
private static CompletableFuture<RegistryAccess.Frozen> load(RegistryDataLoader.LoaderFactory loaderFactory, List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryDataLoader.RegistryData<?>> registriesToLoad, Executor executor, boolean fromResources) -
createContext
private static RegistryOps.RegistryInfoLookup createContext(List<HolderLookup.RegistryLookup<?>> contextRegistries, List<RegistryLoadTask<?>> newRegistriesAndLoaders) -
logErrors
-
printFullDetailsToLog
-
createReportWithBriefInfo
private static ReportedException createReportWithBriefInfo(Map<ResourceKey<?>, Exception> loadingErrors)
-
load(ResourceManager, List, List, Executor, List)instead