Package net.minecraft.util.datafix
Class DelegatingDynamicOps<T>
java.lang.Object
net.minecraft.util.datafix.DelegatingDynamicOps<T>
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
- Direct Known Subclasses:
WorldGenSettingsExport
,WorldSettingsImport
public abstract class DelegatingDynamicOps<T>
extends Object
implements com.mojang.serialization.DynamicOps<T>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DelegatingDynamicOps
(com.mojang.serialization.DynamicOps<T> p_i232586_1_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
<U> U
createBoolean
(boolean p_createBoolean_1_) createByte
(byte p_createByte_1_) createByteList
(ByteBuffer p_createByteList_1_) createDouble
(double p_createDouble_1_) createFloat
(float p_createFloat_1_) createInt
(int p_createInt_1_) createIntList
(IntStream p_createIntList_1_) createList
(Stream<T> p_createList_1_) createLong
(long p_createLong_1_) createLongList
(LongStream p_createLongList_1_) createNumeric
(Number p_createNumeric_1_) createShort
(short p_createShort_1_) createString
(String p_createString_1_) empty()
com.mojang.serialization.DataResult<Boolean>
getBooleanValue
(T p_getBooleanValue_1_) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(T p_getByteBuffer_1_) com.mojang.serialization.DataResult<IntStream>
getIntStream
(T p_getIntStream_1_) com.mojang.serialization.DataResult<LongStream>
getLongStream
(T p_getLongStream_1_) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<T,
T>>> getMapEntries
(T p_getMapEntries_1_) getMapValues
(T p_getMapValues_1_) com.mojang.serialization.DataResult<Number>
getNumberValue
(T p_getNumberValue_1_) com.mojang.serialization.DataResult<String>
getStringValue
(T p_getStringValue_1_) com.mojang.serialization.ListBuilder<T>
com.mojang.serialization.RecordBuilder<T>
com.mojang.serialization.DataResult<T>
mergeToList
(T p_mergeToList_1_, List<T> p_mergeToList_2_) com.mojang.serialization.DataResult<T>
mergeToList
(T p_mergeToList_1_, T p_mergeToList_2_) com.mojang.serialization.DataResult<T>
mergeToMap
(T p_mergeToMap_1_, com.mojang.serialization.MapLike<T> p_mergeToMap_2_) com.mojang.serialization.DataResult<T>
mergeToMap
(T p_mergeToMap_1_, T p_mergeToMap_2_, T p_mergeToMap_3_) 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
-
DelegatingDynamicOps
-
-
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
public com.mojang.serialization.DataResult<T> mergeToList(T p_mergeToList_1_, List<T> p_mergeToList_2_) - Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToMap
public com.mojang.serialization.DataResult<T> mergeToMap(T p_mergeToMap_1_, T p_mergeToMap_2_, T p_mergeToMap_3_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToMap
public com.mojang.serialization.DataResult<T> mergeToMap(T p_mergeToMap_1_, com.mojang.serialization.MapLike<T> p_mergeToMap_2_) - 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_getMapValues_1_) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<T>
-
getMapEntries
public com.mojang.serialization.DataResult<Consumer<BiConsumer<T,T>>> getMapEntries(T p_getMapEntries_1_) - Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<T>
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<T>
-
getMap
public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>> getMap(T p_getMap_1_) - 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>
-