Uses of Record Class
net.minecraft.resources.RegistryDataLoader.RegistryData
Package
Description
-
Uses of RegistryDataLoader.RegistryData in net.minecraft.core
Modifier and TypeMethodDescriptionprivate static <T> void
RegistrySynchronization.packRegistry
(com.mojang.serialization.DynamicOps<Tag> p_321608_, RegistryDataLoader.RegistryData<T> p_321701_, RegistryAccess p_321717_, Set<KnownPack> p_326432_, BiConsumer<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321724_) -
Uses of RegistryDataLoader.RegistryData in net.minecraft.data.registries
Modifier and TypeMethodDescriptionprivate <T> Optional
<CompletableFuture<?>> RegistriesDatapackGenerator.dumpRegistryCap
(CachedOutput p_256502_, HolderLookup.Provider p_256492_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_256000_, RegistryDataLoader.RegistryData<T> p_256449_) Deprecated. -
Uses of RegistryDataLoader.RegistryData in net.minecraft.resources
Modifier and TypeFieldDescriptionprivate final RegistryDataLoader.RegistryData
<T> RegistryDataLoader.Loader.data
The field for thedata
record component.Modifier and TypeFieldDescriptionstatic final List
<RegistryDataLoader.RegistryData<?>> RegistryDataLoader.DIMENSION_REGISTRIES
static final List
<RegistryDataLoader.RegistryData<?>> RegistryDataLoader.SYNCHRONIZED_REGISTRIES
static final List
<RegistryDataLoader.RegistryData<?>> RegistryDataLoader.WORLDGEN_REGISTRIES
Modifier and TypeMethodDescriptionRegistryDataLoader.Loader.data()
Returns the value of thedata
record component.Modifier and TypeMethodDescriptionstatic RegistryAccess.Frozen
RegistryDataLoader.load
(Map<ResourceKey<? extends Registry<?>>, List<RegistrySynchronization.PackedRegistryEntry>> p_321642_, ResourceProvider p_326068_, RegistryAccess p_321850_, List<RegistryDataLoader.RegistryData<?>> p_321716_) private static RegistryAccess.Frozen
RegistryDataLoader.load
(RegistryDataLoader.LoadingFunction p_321713_, RegistryAccess p_321583_, List<RegistryDataLoader.RegistryData<?>> p_321856_) static RegistryAccess.Frozen
RegistryDataLoader.load
(ResourceManager p_252046_, RegistryAccess p_249916_, List<RegistryDataLoader.RegistryData<?>> p_250344_) ModifierConstructorDescription(package private)
Loader
(RegistryDataLoader.RegistryData<T> data, WritableRegistry<T> registry, Map<ResourceKey<?>, Exception> loadingErrors) Creates an instance of aLoader
record class. -
Uses of RegistryDataLoader.RegistryData in net.minecraft.server
Modifier and TypeMethodDescriptionprivate static LayeredRegistryAccess
<RegistryLayer> WorldLoader.loadAndReplaceLayer
(ResourceManager p_249913_, LayeredRegistryAccess<RegistryLayer> p_252077_, RegistryLayer p_250346_, List<RegistryDataLoader.RegistryData<?>> p_250589_) private static RegistryAccess.Frozen
WorldLoader.loadLayer
(ResourceManager p_251529_, LayeredRegistryAccess<RegistryLayer> p_250737_, RegistryLayer p_250790_, List<RegistryDataLoader.RegistryData<?>> p_249516_) -
Uses of RegistryDataLoader.RegistryData in net.neoforged.neoforge.registries
Modifier and TypeFieldDescriptionprivate final RegistryDataLoader.RegistryData
<T> DataPackRegistryEvent.DataPackRegistryData.loaderData
The field for theloaderData
record component.Modifier and TypeFieldDescriptionprivate static final List
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.DATA_PACK_REGISTRIES
private static final List
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.DATA_PACK_REGISTRIES_VIEW
private static final List
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.NETWORKABLE_REGISTRIES
Modifier and TypeMethodDescriptionstatic <T> RegistryDataLoader.RegistryData
<T> DataPackRegistriesHooks.getSyncedRegistry
(ResourceKey<? extends Registry<T>> registry) DataPackRegistryEvent.DataPackRegistryData.loaderData()
Returns the value of theloaderData
record component.Modifier and TypeMethodDescriptionstatic List
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.getDataPackRegistries()
Returns An unmodifiable view of the list of datapack registries.static Stream
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.getDataPackRegistriesWithDimensions()
static List
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.grabNetworkableRegistries
(List<RegistryDataLoader.RegistryData<?>> list) Modifier and TypeMethodDescriptionstatic List
<RegistryDataLoader.RegistryData<?>> DataPackRegistriesHooks.grabNetworkableRegistries
(List<RegistryDataLoader.RegistryData<?>> list) ModifierConstructorDescription(package private)
DataPackRegistryData
(RegistryDataLoader.RegistryData<T> loaderData, @Nullable com.mojang.serialization.Codec<T> networkCodec) Creates an instance of aDataPackRegistryData
record class.