Package net.minecraft.resources
Class RegistryWriteOps<T>
java.lang.Object
net.minecraft.resources.DelegatingOps<T>
net.minecraft.resources.RegistryWriteOps<T>
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
-
Field Summary
Fields inherited from class net.minecraft.resources.DelegatingOps
delegate
-
Constructor Summary
ModifierConstructorDescriptionprivate
RegistryWriteOps(com.mojang.serialization.DynamicOps<T> p_135765_, RegistryAccess p_135766_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RegistryWriteOps<T>
create(com.mojang.serialization.DynamicOps<T> p_135768_, RegistryAccess p_135769_)
protected <E> com.mojang.serialization.DataResult<T>
encode(E p_135771_, T p_135772_, ResourceKey<? extends Registry<E>> p_135773_, com.mojang.serialization.Codec<E> p_135774_)
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
-
registryAccess
-
-
Constructor Details
-
RegistryWriteOps
private RegistryWriteOps(com.mojang.serialization.DynamicOps<T> p_135765_, RegistryAccess p_135766_)
-
-
Method Details
-
create
public static <T> RegistryWriteOps<T> create(com.mojang.serialization.DynamicOps<T> p_135768_, RegistryAccess p_135769_) -
encode
protected <E> com.mojang.serialization.DataResult<T> encode(E p_135771_, T p_135772_, ResourceKey<? extends Registry<E>> p_135773_, com.mojang.serialization.Codec<E> p_135774_)
-