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 Object
implements WorldSettingsImport.IResourceAccess
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.registry.WorldSettingsImport.IResourceAccess
WorldSettingsImport.IResourceAccess.RegistryAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<RegistryKey<?>,
com.google.gson.JsonElement> private final it.unimi.dsi.fastutil.objects.Object2IntMap<RegistryKey<?>>
private final Map<RegistryKey<?>,
com.mojang.serialization.Lifecycle> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<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
(RegistryKey<? extends Registry<?>> p_241880_1_) <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,
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 Details
-
data
-
ids
-
lifecycles
-
-
Constructor Details
-
RegistryAccess
public RegistryAccess()
-
-
Method Details
-
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
- Specified by:
listResources
in interfaceWorldSettingsImport.IResourceAccess
-
parseElement
public <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,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
-