Package net.minecraft.resources
Class RegistryLoader
java.lang.Object
net.minecraft.resources.RegistryLoader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
(package private) static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceKey<? extends Registry<?>>,
RegistryLoader.ReadCache<?>> private final RegistryResourceAccess
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(RegistryAccess.Writable p_206758_) (package private) <E> com.mojang.serialization.DataResult<Holder<E>>
overrideElementFromResources
(WritableRegistry<E> p_206768_, ResourceKey<? extends Registry<E>> p_206769_, com.mojang.serialization.Codec<E> p_206770_, ResourceKey<E> p_206771_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206772_) <E> com.mojang.serialization.DataResult<? extends Registry<E>>
overrideRegistryFromResources
(WritableRegistry<E> p_206763_, ResourceKey<? extends Registry<E>> p_206764_, com.mojang.serialization.Codec<E> p_206765_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206766_) private <E> RegistryLoader.ReadCache<E>
readCache
(ResourceKey<? extends Registry<E>> p_206774_)
-
Field Details
-
resources
-
readCache
-
-
Constructor Details
-
RegistryLoader
RegistryLoader(RegistryResourceAccess p_206753_)
-
-
Method Details
-
overrideRegistryFromResources
public <E> com.mojang.serialization.DataResult<? extends Registry<E>> overrideRegistryFromResources(WritableRegistry<E> p_206763_, ResourceKey<? extends Registry<E>> p_206764_, com.mojang.serialization.Codec<E> p_206765_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206766_) -
overrideElementFromResources
<E> com.mojang.serialization.DataResult<Holder<E>> overrideElementFromResources(WritableRegistry<E> p_206768_, ResourceKey<? extends Registry<E>> p_206769_, com.mojang.serialization.Codec<E> p_206770_, ResourceKey<E> p_206771_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206772_) -
readCache
-
bind
-