Package net.minecraft.util.registry
Class WorldSettingsImport<T>
java.lang.Object
net.minecraft.util.datafix.DelegatingDynamicOps<T>
net.minecraft.util.registry.WorldSettingsImport<T>
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final WorldSettingsImport<com.google.gson.JsonElement>
private static final org.apache.logging.log4j.Logger
private final Map<RegistryKey<? extends Registry<?>>,
WorldSettingsImport.ResultMap<?>> private final DynamicRegistries.Impl
private final WorldSettingsImport.IResourceAccess
Fields inherited from class net.minecraft.util.datafix.DelegatingDynamicOps
delegate
-
Constructor Summary
ModifierConstructorDescriptionprivate
WorldSettingsImport
(com.mojang.serialization.DynamicOps<T> p_i242092_1_, WorldSettingsImport.IResourceAccess p_i242092_2_, DynamicRegistries.Impl p_i242092_3_, IdentityHashMap<RegistryKey<? extends Registry<?>>, WorldSettingsImport.ResultMap<?>> p_i242092_4_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> WorldSettingsImport<T>
create
(com.mojang.serialization.DynamicOps<T> p_244335_0_, IResourceManager p_244335_1_, DynamicRegistries.Impl p_244335_2_) static <T> WorldSettingsImport<T>
create
(com.mojang.serialization.DynamicOps<T> p_244336_0_, WorldSettingsImport.IResourceAccess p_244336_1_, DynamicRegistries.Impl p_244336_2_) decodeElement
(T p_241802_1_, RegistryKey<? extends Registry<E>> p_241802_2_, com.mojang.serialization.Codec<E> p_241802_3_, boolean p_241802_4_) <E> com.mojang.serialization.DataResult<SimpleRegistry<E>>
decodeElements
(SimpleRegistry<E> p_241797_1_, RegistryKey<? extends Registry<E>> p_241797_2_, com.mojang.serialization.Codec<E> p_241797_3_) private <E> com.mojang.serialization.DataResult<Supplier<E>>
readAndRegisterElement
(RegistryKey<? extends Registry<E>> p_241805_1_, MutableRegistry<E> p_241805_2_, com.mojang.serialization.Codec<E> p_241805_3_, ResourceLocation p_241805_4_) private <E> WorldSettingsImport.ResultMap<E>
readCache
(RegistryKey<? extends Registry<E>> p_240884_1_) protected <E> com.mojang.serialization.DataResult<Registry<E>>
registry
(RegistryKey<? extends Registry<E>> p_244340_1_) Methods inherited from class net.minecraft.util.datafix.DelegatingDynamicOps
compressMaps, convertTo, createBoolean, createByte, createByteList, createDouble, createFloat, createInt, createIntList, createList, createLong, createLongList, createMap, createNumeric, createShort, createString, empty, getBooleanValue, getByteBuffer, getIntStream, getList, getLongStream, getMap, getMapEntries, getMapValues, getNumberValue, getStream, getStringValue, listBuilder, mapBuilder, mergeToList, mergeToList, mergeToMap, mergeToMap, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.serialization.DynamicOps
convertList, convertMap, createMap, emptyList, emptyMap, get, getGeneric, getNumberValue, mergeToMap, mergeToPrimitive, set, update, updateGeneric, withDecoder, withEncoder, withParser
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
resources
-
registryHolder
-
readCache
-
jsonOps
-
-
Constructor Details
-
WorldSettingsImport
private WorldSettingsImport(com.mojang.serialization.DynamicOps<T> p_i242092_1_, WorldSettingsImport.IResourceAccess p_i242092_2_, DynamicRegistries.Impl p_i242092_3_, IdentityHashMap<RegistryKey<? extends Registry<?>>, WorldSettingsImport.ResultMap<?>> p_i242092_4_)
-
-
Method Details
-
create
public static <T> WorldSettingsImport<T> create(com.mojang.serialization.DynamicOps<T> p_244335_0_, IResourceManager p_244335_1_, DynamicRegistries.Impl p_244335_2_) -
create
public static <T> WorldSettingsImport<T> create(com.mojang.serialization.DynamicOps<T> p_244336_0_, WorldSettingsImport.IResourceAccess p_244336_1_, DynamicRegistries.Impl p_244336_2_) -
decodeElement
protected <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<Supplier<E>,T>> decodeElement(T p_241802_1_, RegistryKey<? extends Registry<E>> p_241802_2_, com.mojang.serialization.Codec<E> p_241802_3_, boolean p_241802_4_) -
decodeElements
public <E> com.mojang.serialization.DataResult<SimpleRegistry<E>> decodeElements(SimpleRegistry<E> p_241797_1_, RegistryKey<? extends Registry<E>> p_241797_2_, com.mojang.serialization.Codec<E> p_241797_3_) -
readAndRegisterElement
private <E> com.mojang.serialization.DataResult<Supplier<E>> readAndRegisterElement(RegistryKey<? extends Registry<E>> p_241805_1_, MutableRegistry<E> p_241805_2_, com.mojang.serialization.Codec<E> p_241805_3_, ResourceLocation p_241805_4_) -
readCache
private <E> WorldSettingsImport.ResultMap<E> readCache(RegistryKey<? extends Registry<E>> p_240884_1_) -
registry
protected <E> com.mojang.serialization.DataResult<Registry<E>> registry(RegistryKey<? extends Registry<E>> p_244340_1_)
-