Package net.minecraft.util.registry
Class WorldSettingsImport.IResourceAccess.RegistryAccess
- java.lang.Object
-
- net.minecraft.util.registry.WorldSettingsImport.IResourceAccess.RegistryAccess
-
- All Implemented Interfaces:
WorldSettingsImport.IResourceAccess
- Enclosing interface:
- WorldSettingsImport.IResourceAccess
public static final class WorldSettingsImport.IResourceAccess.RegistryAccess extends java.lang.Object implements WorldSettingsImport.IResourceAccess
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.util.registry.WorldSettingsImport.IResourceAccess
WorldSettingsImport.IResourceAccess.RegistryAccess
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<RegistryKey<?>,com.google.gson.JsonElement>
data
private it.unimi.dsi.fastutil.objects.Object2IntMap<RegistryKey<?>>
ids
private java.util.Map<RegistryKey<?>,com.mojang.serialization.Lifecycle>
lifecycles
-
Constructor Summary
Constructors Constructor Description RegistryAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> void
add(DynamicRegistries.Impl p_244352_1_, RegistryKey<E> p_244352_2_, com.mojang.serialization.Encoder<E> p_244352_3_, int p_244352_4_, E p_244352_5_, com.mojang.serialization.Lifecycle p_244352_6_)
java.util.Collection<ResourceLocation>
listResources(RegistryKey<? extends Registry<?>> p_241880_1_)
<E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,java.util.OptionalInt>>
parseElement(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_241879_1_, RegistryKey<? extends Registry<E>> p_241879_2_, RegistryKey<E> p_241879_3_, com.mojang.serialization.Decoder<E> p_241879_4_)
-
-
-
Field Detail
-
data
private final java.util.Map<RegistryKey<?>,com.google.gson.JsonElement> data
-
ids
private final it.unimi.dsi.fastutil.objects.Object2IntMap<RegistryKey<?>> ids
-
lifecycles
private final java.util.Map<RegistryKey<?>,com.mojang.serialization.Lifecycle> lifecycles
-
-
Method Detail
-
add
public <E> void add(DynamicRegistries.Impl p_244352_1_, RegistryKey<E> p_244352_2_, com.mojang.serialization.Encoder<E> p_244352_3_, int p_244352_4_, E p_244352_5_, com.mojang.serialization.Lifecycle p_244352_6_)
-
listResources
public java.util.Collection<ResourceLocation> listResources(RegistryKey<? extends Registry<?>> p_241880_1_)
- Specified by:
listResources
in interfaceWorldSettingsImport.IResourceAccess
-
parseElement
public <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,java.util.OptionalInt>> parseElement(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_241879_1_, RegistryKey<? extends Registry<E>> p_241879_2_, RegistryKey<E> p_241879_3_, com.mojang.serialization.Decoder<E> p_241879_4_)
- Specified by:
parseElement
in interfaceWorldSettingsImport.IResourceAccess
-
-