Package net.minecraft.resources
Class RegistryReadOps.ResourceAccess.MemoryMap
java.lang.Object
net.minecraft.resources.RegistryReadOps.ResourceAccess.MemoryMap
- All Implemented Interfaces:
RegistryReadOps.ResourceAccess
- Enclosing interface:
- RegistryReadOps.ResourceAccess
public static final class RegistryReadOps.ResourceAccess.MemoryMap
extends Object
implements RegistryReadOps.ResourceAccess
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.RegistryReadOps.ResourceAccess
RegistryReadOps.ResourceAccess.MemoryMap
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<ResourceKey<?>,com.google.gson.JsonElement>
private it.unimi.dsi.fastutil.objects.Object2IntMap<ResourceKey<?>>
private Map<ResourceKey<?>,com.mojang.serialization.Lifecycle>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<E> void
add(RegistryAccess.RegistryHolder p_135746_, ResourceKey<E> p_135747_, com.mojang.serialization.Encoder<E> p_135748_, int p_135749_, E p_135750_, com.mojang.serialization.Lifecycle p_135751_)
listResources(ResourceKey<? extends Registry<?>> p_135753_)
<E> Optional<com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,OptionalInt>>>
parseElement(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_179902_, ResourceKey<? extends Registry<E>> p_179903_, ResourceKey<E> p_179904_, com.mojang.serialization.Decoder<E> p_179905_)
-
Field Details
-
data
-
ids
-
lifecycles
-
-
Constructor Details
-
MemoryMap
public MemoryMap()
-
-
Method Details
-
add
public <E> void add(RegistryAccess.RegistryHolder p_135746_, ResourceKey<E> p_135747_, com.mojang.serialization.Encoder<E> p_135748_, int p_135749_, E p_135750_, com.mojang.serialization.Lifecycle p_135751_) -
listResources
- Specified by:
listResources
in interfaceRegistryReadOps.ResourceAccess
-
parseElement
public <E> Optional<com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,OptionalInt>>> parseElement(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_179902_, ResourceKey<? extends Registry<E>> p_179903_, ResourceKey<E> p_179904_, com.mojang.serialization.Decoder<E> p_179905_)- Specified by:
parseElement
in interfaceRegistryReadOps.ResourceAccess
-