Package net.minecraft.resources
Class RegistryDataLoader
java.lang.Object
net.minecraft.resources.RegistryDataLoader
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final List<RegistryDataLoader.RegistryData<?>>
private static final org.slf4j.Logger
static final List<RegistryDataLoader.RegistryData<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static RegistryOps.RegistryInfoLookup
createContext
(RegistryAccess p_256568_, List<com.mojang.datafixers.util.Pair<WritableRegistry<?>, RegistryDataLoader.Loader>> p_255821_) private static <T> RegistryOps.RegistryInfo<T>
createInfoForContextRegistry
(Registry<T> p_256230_) private static <T> RegistryOps.RegistryInfo<T>
createInfoForNewRegistry
(WritableRegistry<T> p_256020_) static RegistryAccess.Frozen
load
(ResourceManager p_252046_, RegistryAccess p_249916_, List<RegistryDataLoader.RegistryData<?>> p_250344_) (package private) static <E> void
loadRegistryContents
(RegistryOps.RegistryInfoLookup p_256369_, ResourceManager p_256349_, ResourceKey<? extends Registry<E>> p_255792_, WritableRegistry<E> p_256211_, com.mojang.serialization.Decoder<E> p_256232_, Map<ResourceKey<?>, Exception> p_255884_) private static void
logErrors
(Map<ResourceKey<?>, Exception> p_252325_) private static String
registryDirPath
(ResourceLocation p_252033_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
WORLDGEN_REGISTRIES
-
DIMENSION_REGISTRIES
-
-
Constructor Details
-
RegistryDataLoader
public RegistryDataLoader()
-
-
Method Details
-
load
public static RegistryAccess.Frozen load(ResourceManager p_252046_, RegistryAccess p_249916_, List<RegistryDataLoader.RegistryData<?>> p_250344_) -
createContext
private static RegistryOps.RegistryInfoLookup createContext(RegistryAccess p_256568_, List<com.mojang.datafixers.util.Pair<WritableRegistry<?>, RegistryDataLoader.Loader>> p_255821_) -
createInfoForNewRegistry
private static <T> RegistryOps.RegistryInfo<T> createInfoForNewRegistry(WritableRegistry<T> p_256020_) -
createInfoForContextRegistry
-
logErrors
-
registryDirPath
-
loadRegistryContents
static <E> void loadRegistryContents(RegistryOps.RegistryInfoLookup p_256369_, ResourceManager p_256349_, ResourceKey<? extends Registry<E>> p_255792_, WritableRegistry<E> p_256211_, com.mojang.serialization.Decoder<E> p_256232_, Map<ResourceKey<?>, Exception> p_255884_)
-