Package net.minecraft.resources
Class RegistryReadOps<T>
java.lang.Object
net.minecraft.resources.DelegatingOps<T>
net.minecraft.resources.RegistryReadOps<T>
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static String
private RegistryReadOps<com.google.gson.JsonElement>
(package private) static org.apache.logging.log4j.Logger
private Map<ResourceKey<? extends Registry<?>>,RegistryReadOps.ReadCache<?>>
private RegistryReadOps.ResourceAccess
Fields inherited from class net.minecraft.resources.DelegatingOps
delegate
-
Constructor Summary
ModifierConstructorDescriptionprivate
RegistryReadOps(com.mojang.serialization.DynamicOps<T> p_179862_, RegistryReadOps.ResourceAccess p_179863_, RegistryAccess p_179864_, IdentityHashMap<ResourceKey<? extends Registry<?>>,RegistryReadOps.ReadCache<?>> p_179865_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RegistryReadOps<T>
create(com.mojang.serialization.DynamicOps<T> p_179887_, RegistryReadOps.ResourceAccess p_179888_, RegistryAccess p_179889_)
static <T> RegistryReadOps<T>
create(com.mojang.serialization.DynamicOps<T> p_179883_, ResourceManager p_179884_, RegistryAccess p_179885_)
static <T> RegistryReadOps<T>
createAndLoad(com.mojang.serialization.DynamicOps<T> p_179871_, RegistryReadOps.ResourceAccess p_179872_, RegistryAccess p_179873_)
static <T> RegistryReadOps<T>
createAndLoad(com.mojang.serialization.DynamicOps<T> p_179867_, ResourceManager p_179868_, RegistryAccess p_179869_)
decodeElement(T p_135678_, ResourceKey<? extends Registry<E>> p_135679_, com.mojang.serialization.Codec<E> p_135680_, boolean p_135681_)
<E> com.mojang.serialization.DataResult<MappedRegistry<E>>
decodeElements(MappedRegistry<E> p_135663_, ResourceKey<? extends Registry<E>> p_135664_, com.mojang.serialization.Codec<E> p_135665_)
private <E> com.mojang.serialization.DataResult<Supplier<E>>
readAndRegisterElement(ResourceKey<? extends Registry<E>> p_135690_, WritableRegistry<E> p_135691_, com.mojang.serialization.Codec<E> p_135692_, ResourceLocation p_135693_)
private <E> RegistryReadOps.ReadCache<E>
readCache(ResourceKey<? extends Registry<E>> p_135700_)
protected <E> com.mojang.serialization.DataResult<Registry<E>>
registry(ResourceKey<? extends Registry<E>> p_135683_)
Methods inherited from class net.minecraft.resources.DelegatingOps
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
static final org.apache.logging.log4j.Logger LOGGER -
JSON
- See Also:
- Constant Field Values
-
resources
-
registryAccess
-
readCache
-
jsonOps
-
-
Constructor Details
-
RegistryReadOps
private RegistryReadOps(com.mojang.serialization.DynamicOps<T> p_179862_, RegistryReadOps.ResourceAccess p_179863_, RegistryAccess p_179864_, IdentityHashMap<ResourceKey<? extends Registry<?>>,RegistryReadOps.ReadCache<?>> p_179865_)
-
-
Method Details
-
createAndLoad
public static <T> RegistryReadOps<T> createAndLoad(com.mojang.serialization.DynamicOps<T> p_179867_, ResourceManager p_179868_, RegistryAccess p_179869_) -
createAndLoad
public static <T> RegistryReadOps<T> createAndLoad(com.mojang.serialization.DynamicOps<T> p_179871_, RegistryReadOps.ResourceAccess p_179872_, RegistryAccess p_179873_) -
create
public static <T> RegistryReadOps<T> create(com.mojang.serialization.DynamicOps<T> p_179883_, ResourceManager p_179884_, RegistryAccess p_179885_) -
create
public static <T> RegistryReadOps<T> create(com.mojang.serialization.DynamicOps<T> p_179887_, RegistryReadOps.ResourceAccess p_179888_, RegistryAccess p_179889_) -
decodeElement
protected <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<Supplier<E>,T>> decodeElement(T p_135678_, ResourceKey<? extends Registry<E>> p_135679_, com.mojang.serialization.Codec<E> p_135680_, boolean p_135681_) -
decodeElements
public <E> com.mojang.serialization.DataResult<MappedRegistry<E>> decodeElements(MappedRegistry<E> p_135663_, ResourceKey<? extends Registry<E>> p_135664_, com.mojang.serialization.Codec<E> p_135665_) -
readAndRegisterElement
private <E> com.mojang.serialization.DataResult<Supplier<E>> readAndRegisterElement(ResourceKey<? extends Registry<E>> p_135690_, WritableRegistry<E> p_135691_, com.mojang.serialization.Codec<E> p_135692_, ResourceLocation p_135693_) -
readCache
-
registry
protected <E> com.mojang.serialization.DataResult<Registry<E>> registry(ResourceKey<? extends Registry<E>> p_135683_)
-