Package net.minecraft.resources
Class DelegatingOps<T>
java.lang.Object
net.minecraft.resources.DelegatingOps<T>
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
- Direct Known Subclasses:
RegistryOps
public abstract class DelegatingOps<T>
extends Object
implements com.mojang.serialization.DynamicOps<T>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DelegatingOps
(com.mojang.serialization.DynamicOps<T> p_135467_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
<U> U
createBoolean
(boolean p_135473_) createByte
(byte p_135475_) createByteList
(ByteBuffer p_135477_) createDouble
(double p_135479_) createFloat
(float p_135481_) createInt
(int p_135483_) createIntList
(IntStream p_135485_) createList
(Stream<T> p_135487_) createLong
(long p_135489_) createLongList
(LongStream p_135491_) createNumeric
(Number p_135495_) createShort
(short p_135497_) createString
(String p_135499_) empty()
com.mojang.serialization.DataResult<Boolean>
getBooleanValue
(T p_135502_) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(T p_135504_) com.mojang.serialization.DataResult<IntStream>
getIntStream
(T p_135506_) com.mojang.serialization.DataResult<LongStream>
getLongStream
(T p_135510_) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<T,
T>>> getMapEntries
(T p_135514_) getMapValues
(T p_135516_) com.mojang.serialization.DataResult<Number>
getNumberValue
(T p_135518_) com.mojang.serialization.DataResult<String>
getStringValue
(T p_135522_) com.mojang.serialization.ListBuilder<T>
com.mojang.serialization.RecordBuilder<T>
com.mojang.serialization.DataResult<T>
mergeToList
(T p_135529_, List<T> p_135530_) com.mojang.serialization.DataResult<T>
mergeToList
(T p_135526_, T p_135527_) com.mojang.serialization.DataResult<T>
mergeToMap
(T p_135532_, com.mojang.serialization.MapLike<T> p_135533_) com.mojang.serialization.DataResult<T>
mergeToMap
(T p_135535_, T p_135536_, T p_135537_) 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
-
delegate
-
-
Constructor Details
-
DelegatingOps
-
-
Method Details
-
empty
- Specified by:
empty
in interfacecom.mojang.serialization.DynamicOps<T>
-
convertTo
- Specified by:
convertTo
in interfacecom.mojang.serialization.DynamicOps<T>
-
getNumberValue
- Specified by:
getNumberValue
in interfacecom.mojang.serialization.DynamicOps<T>
-
createNumeric
- Specified by:
createNumeric
in interfacecom.mojang.serialization.DynamicOps<T>
-
createByte
- Specified by:
createByte
in interfacecom.mojang.serialization.DynamicOps<T>
-
createShort
- Specified by:
createShort
in interfacecom.mojang.serialization.DynamicOps<T>
-
createInt
- Specified by:
createInt
in interfacecom.mojang.serialization.DynamicOps<T>
-
createLong
- Specified by:
createLong
in interfacecom.mojang.serialization.DynamicOps<T>
-
createFloat
- Specified by:
createFloat
in interfacecom.mojang.serialization.DynamicOps<T>
-
createDouble
- Specified by:
createDouble
in interfacecom.mojang.serialization.DynamicOps<T>
-
getBooleanValue
- Specified by:
getBooleanValue
in interfacecom.mojang.serialization.DynamicOps<T>
-
createBoolean
- Specified by:
createBoolean
in interfacecom.mojang.serialization.DynamicOps<T>
-
getStringValue
- Specified by:
getStringValue
in interfacecom.mojang.serialization.DynamicOps<T>
-
createString
- Specified by:
createString
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToMap
- Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToMap
public com.mojang.serialization.DataResult<T> mergeToMap(T p_135532_, com.mojang.serialization.MapLike<T> p_135533_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<T>
-
getMapValues
public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<T,T>>> getMapValues(T p_135516_) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<T>
-
getMapEntries
- Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<T>
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<T>
-
getMap
- Specified by:
getMap
in interfacecom.mojang.serialization.DynamicOps<T>
-
getStream
- Specified by:
getStream
in interfacecom.mojang.serialization.DynamicOps<T>
-
getList
- Specified by:
getList
in interfacecom.mojang.serialization.DynamicOps<T>
-
createList
- Specified by:
createList
in interfacecom.mojang.serialization.DynamicOps<T>
-
getByteBuffer
- Specified by:
getByteBuffer
in interfacecom.mojang.serialization.DynamicOps<T>
-
createByteList
- Specified by:
createByteList
in interfacecom.mojang.serialization.DynamicOps<T>
-
getIntStream
- Specified by:
getIntStream
in interfacecom.mojang.serialization.DynamicOps<T>
-
createIntList
- Specified by:
createIntList
in interfacecom.mojang.serialization.DynamicOps<T>
-
getLongStream
- Specified by:
getLongStream
in interfacecom.mojang.serialization.DynamicOps<T>
-
createLongList
- Specified by:
createLongList
in interfacecom.mojang.serialization.DynamicOps<T>
-
remove
- Specified by:
remove
in interfacecom.mojang.serialization.DynamicOps<T>
-
compressMaps
public boolean compressMaps()- Specified by:
compressMaps
in interfacecom.mojang.serialization.DynamicOps<T>
-
listBuilder
- Specified by:
listBuilder
in interfacecom.mojang.serialization.DynamicOps<T>
-
mapBuilder
- Specified by:
mapBuilder
in interfacecom.mojang.serialization.DynamicOps<T>
-