类 RegistryDataLoader
java.lang.Object
net.minecraft.resources.RegistryDataLoader
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static interface
static final record
-
字段概要
字段修饰符和类型字段说明static final List<RegistryDataLoader.RegistryData<?>>
private static final org.slf4j.Logger
static final List<RegistryDataLoader.RegistryData<?>>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static RegistryOps.RegistryInfoLookup
createContext
(RegistryAccess pRegistryAccess, List<com.mojang.datafixers.util.Pair<WritableRegistry<?>, RegistryDataLoader.Loader>> pRegistryLoaders) private static <T> RegistryOps.RegistryInfo<T>
createInfoForContextRegistry
(Registry<T> pRegistry) private static <T> RegistryOps.RegistryInfo<T>
createInfoForNewRegistry
(WritableRegistry<T> pRegistry) static RegistryAccess.Frozen
load
(ResourceManager pResourceManager, RegistryAccess pRegistryAccess, List<RegistryDataLoader.RegistryData<?>> pRegistryData) (专用程序包) static <E> void
loadRegistryContents
(RegistryOps.RegistryInfoLookup pLookup, ResourceManager pManager, ResourceKey<? extends Registry<E>> pRegistryKey, WritableRegistry<E> pRegistry, com.mojang.serialization.Decoder<E> pDecoder, Map<ResourceKey<?>, Exception> pExceptions) private static void
logErrors
(Map<ResourceKey<?>, Exception> pErrors) private static String
registryDirPath
(ResourceLocation pLocation)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
WORLDGEN_REGISTRIES
-
DIMENSION_REGISTRIES
-
-
构造器详细资料
-
RegistryDataLoader
public RegistryDataLoader()
-
-
方法详细资料
-
load
public static RegistryAccess.Frozen load(ResourceManager pResourceManager, RegistryAccess pRegistryAccess, List<RegistryDataLoader.RegistryData<?>> pRegistryData) -
createContext
private static RegistryOps.RegistryInfoLookup createContext(RegistryAccess pRegistryAccess, List<com.mojang.datafixers.util.Pair<WritableRegistry<?>, RegistryDataLoader.Loader>> pRegistryLoaders) -
createInfoForNewRegistry
private static <T> RegistryOps.RegistryInfo<T> createInfoForNewRegistry(WritableRegistry<T> pRegistry) -
createInfoForContextRegistry
-
logErrors
-
registryDirPath
-
loadRegistryContents
static <E> void loadRegistryContents(RegistryOps.RegistryInfoLookup pLookup, ResourceManager pManager, ResourceKey<? extends Registry<E>> pRegistryKey, WritableRegistry<E> pRegistry, com.mojang.serialization.Decoder<E> pDecoder, Map<ResourceKey<?>, Exception> pExceptions)
-