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.EntryThunk<E>, 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_) getResource
(ResourceKey<E> p_214285_) <E> Map<ResourceKey<E>,
RegistryResourceAccess.EntryThunk<E>> listResources
(ResourceKey<? extends Registry<E>> p_214274_)
-
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
public <E> Map<ResourceKey<E>,RegistryResourceAccess.EntryThunk<E>> listResources(ResourceKey<? extends Registry<E>> p_214274_) - Specified by:
listResources
in interfaceRegistryResourceAccess
-
getResource
- Specified by:
getResource
in interfaceRegistryResourceAccess
-