Package net.minecraft.resources
Class RegistryResourceAccess.InMemoryStorage
java.lang.Object
net.minecraft.resources.RegistryResourceAccess.InMemoryStorage
- All Implemented Interfaces:
RegistryResourceAccess
- Enclosing interface:
- RegistryResourceAccess
public static final class RegistryResourceAccess.InMemoryStorage
extends Object
implements RegistryResourceAccess
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
Nested classes/interfaces inherited from interface net.minecraft.resources.RegistryResourceAccess
RegistryResourceAccess.InMemoryStorage, RegistryResourceAccess.ParsedEntry<E>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceKey<?>,
RegistryResourceAccess.InMemoryStorage.Entry> private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E> void
add
(RegistryAccess p_206837_, ResourceKey<E> p_206838_, com.mojang.serialization.Encoder<E> p_206839_, int p_206840_, E p_206841_, com.mojang.serialization.Lifecycle p_206842_) <E> Collection<ResourceKey<E>>
listResources
(ResourceKey<? extends Registry<E>> p_195932_) <E> Optional<com.mojang.serialization.DataResult<RegistryResourceAccess.ParsedEntry<E>>>
parseElement
(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_195917_, ResourceKey<? extends Registry<E>> p_195918_, ResourceKey<E> p_195919_, com.mojang.serialization.Decoder<E> p_195920_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
entries
-
-
Constructor Details
-
InMemoryStorage
public InMemoryStorage()
-
-
Method Details
-
add
public <E> void add(RegistryAccess p_206837_, ResourceKey<E> p_206838_, com.mojang.serialization.Encoder<E> p_206839_, int p_206840_, E p_206841_, com.mojang.serialization.Lifecycle p_206842_) -
listResources
- Specified by:
listResources
in interfaceRegistryResourceAccess
-
parseElement
public <E> Optional<com.mojang.serialization.DataResult<RegistryResourceAccess.ParsedEntry<E>>> parseElement(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_195917_, ResourceKey<? extends Registry<E>> p_195918_, ResourceKey<E> p_195919_, com.mojang.serialization.Decoder<E> p_195920_) - Specified by:
parseElement
in interfaceRegistryResourceAccess
-