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>
public class WorldSettingsImport<T> extends DelegatingDynamicOps<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WorldSettingsImport.IResourceAccess
(package private) static class
WorldSettingsImport.ResultMap<E>
-
Field Summary
Fields Modifier and Type Field Description private WorldSettingsImport<com.google.gson.JsonElement>
jsonOps
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.Map<RegistryKey<? extends Registry<?>>,WorldSettingsImport.ResultMap<?>>
readCache
private DynamicRegistries.Impl
registryHolder
private WorldSettingsImport.IResourceAccess
resources
-
Fields inherited from class net.minecraft.util.datafix.DelegatingDynamicOps
delegate
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WorldSettingsImport(com.mojang.serialization.DynamicOps<T> p_i242092_1_, WorldSettingsImport.IResourceAccess p_i242092_2_, DynamicRegistries.Impl p_i242092_3_, java.util.IdentityHashMap<RegistryKey<? extends Registry<?>>,WorldSettingsImport.ResultMap<?>> p_i242092_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <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_)
protected <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<java.util.function.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_)
<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<java.util.function.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
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
resources
private final WorldSettingsImport.IResourceAccess resources
-
registryHolder
private final DynamicRegistries.Impl registryHolder
-
readCache
private final java.util.Map<RegistryKey<? extends Registry<?>>,WorldSettingsImport.ResultMap<?>> readCache
-
jsonOps
private final WorldSettingsImport<com.google.gson.JsonElement> jsonOps
-
-
Constructor Detail
-
WorldSettingsImport
private WorldSettingsImport(com.mojang.serialization.DynamicOps<T> p_i242092_1_, WorldSettingsImport.IResourceAccess p_i242092_2_, DynamicRegistries.Impl p_i242092_3_, java.util.IdentityHashMap<RegistryKey<? extends Registry<?>>,WorldSettingsImport.ResultMap<?>> p_i242092_4_)
-
-
Method Detail
-
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<java.util.function.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<java.util.function.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_)
-
-