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 java.lang.Object implements com.mojang.serialization.DynamicOps<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DelegatingDynamicOps(com.mojang.serialization.DynamicOps<T> p_i232586_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compressMaps()
<U> U
convertTo(com.mojang.serialization.DynamicOps<U> p_convertTo_1_, T p_convertTo_2_)
T
createBoolean(boolean p_createBoolean_1_)
T
createByte(byte p_createByte_1_)
T
createByteList(java.nio.ByteBuffer p_createByteList_1_)
T
createDouble(double p_createDouble_1_)
T
createFloat(float p_createFloat_1_)
T
createInt(int p_createInt_1_)
T
createIntList(java.util.stream.IntStream p_createIntList_1_)
T
createList(java.util.stream.Stream<T> p_createList_1_)
T
createLong(long p_createLong_1_)
T
createLongList(java.util.stream.LongStream p_createLongList_1_)
T
createMap(java.util.stream.Stream<com.mojang.datafixers.util.Pair<T,T>> p_createMap_1_)
T
createNumeric(java.lang.Number p_createNumeric_1_)
T
createShort(short p_createShort_1_)
T
createString(java.lang.String p_createString_1_)
T
empty()
com.mojang.serialization.DataResult<java.lang.Boolean>
getBooleanValue(T p_getBooleanValue_1_)
com.mojang.serialization.DataResult<java.nio.ByteBuffer>
getByteBuffer(T p_getByteBuffer_1_)
com.mojang.serialization.DataResult<java.util.stream.IntStream>
getIntStream(T p_getIntStream_1_)
com.mojang.serialization.DataResult<java.util.function.Consumer<java.util.function.Consumer<T>>>
getList(T p_getList_1_)
com.mojang.serialization.DataResult<java.util.stream.LongStream>
getLongStream(T p_getLongStream_1_)
com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>>
getMap(T p_getMap_1_)
com.mojang.serialization.DataResult<java.util.function.Consumer<java.util.function.BiConsumer<T,T>>>
getMapEntries(T p_getMapEntries_1_)
com.mojang.serialization.DataResult<java.util.stream.Stream<com.mojang.datafixers.util.Pair<T,T>>>
getMapValues(T p_getMapValues_1_)
com.mojang.serialization.DataResult<java.lang.Number>
getNumberValue(T p_getNumberValue_1_)
com.mojang.serialization.DataResult<java.util.stream.Stream<T>>
getStream(T p_getStream_1_)
com.mojang.serialization.DataResult<java.lang.String>
getStringValue(T p_getStringValue_1_)
com.mojang.serialization.ListBuilder<T>
listBuilder()
com.mojang.serialization.RecordBuilder<T>
mapBuilder()
com.mojang.serialization.DataResult<T>
mergeToList(T p_mergeToList_1_, java.util.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_)
T
remove(T p_remove_1_, java.lang.String p_remove_2_)
-
-
-
Field Detail
-
delegate
protected final com.mojang.serialization.DynamicOps<T> delegate
-
-
Constructor Detail
-
DelegatingDynamicOps
protected DelegatingDynamicOps(com.mojang.serialization.DynamicOps<T> p_i232586_1_)
-
-
Method Detail
-
convertTo
public <U> U convertTo(com.mojang.serialization.DynamicOps<U> p_convertTo_1_, T p_convertTo_2_)
- Specified by:
convertTo
in interfacecom.mojang.serialization.DynamicOps<T>
-
getNumberValue
public com.mojang.serialization.DataResult<java.lang.Number> getNumberValue(T p_getNumberValue_1_)
- Specified by:
getNumberValue
in interfacecom.mojang.serialization.DynamicOps<T>
-
createNumeric
public T createNumeric(java.lang.Number p_createNumeric_1_)
- Specified by:
createNumeric
in interfacecom.mojang.serialization.DynamicOps<T>
-
createByte
public T createByte(byte p_createByte_1_)
- Specified by:
createByte
in interfacecom.mojang.serialization.DynamicOps<T>
-
createShort
public T createShort(short p_createShort_1_)
- Specified by:
createShort
in interfacecom.mojang.serialization.DynamicOps<T>
-
createInt
public T createInt(int p_createInt_1_)
- Specified by:
createInt
in interfacecom.mojang.serialization.DynamicOps<T>
-
createLong
public T createLong(long p_createLong_1_)
- Specified by:
createLong
in interfacecom.mojang.serialization.DynamicOps<T>
-
createFloat
public T createFloat(float p_createFloat_1_)
- Specified by:
createFloat
in interfacecom.mojang.serialization.DynamicOps<T>
-
createDouble
public T createDouble(double p_createDouble_1_)
- Specified by:
createDouble
in interfacecom.mojang.serialization.DynamicOps<T>
-
getBooleanValue
public com.mojang.serialization.DataResult<java.lang.Boolean> getBooleanValue(T p_getBooleanValue_1_)
- Specified by:
getBooleanValue
in interfacecom.mojang.serialization.DynamicOps<T>
-
createBoolean
public T createBoolean(boolean p_createBoolean_1_)
- Specified by:
createBoolean
in interfacecom.mojang.serialization.DynamicOps<T>
-
getStringValue
public com.mojang.serialization.DataResult<java.lang.String> getStringValue(T p_getStringValue_1_)
- Specified by:
getStringValue
in interfacecom.mojang.serialization.DynamicOps<T>
-
createString
public T createString(java.lang.String p_createString_1_)
- Specified by:
createString
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToList
public com.mojang.serialization.DataResult<T> mergeToList(T p_mergeToList_1_, T p_mergeToList_2_)
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<T>
-
mergeToList
public com.mojang.serialization.DataResult<T> mergeToList(T p_mergeToList_1_, java.util.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<java.util.stream.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<java.util.function.Consumer<java.util.function.BiConsumer<T,T>>> getMapEntries(T p_getMapEntries_1_)
- Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<T>
-
createMap
public T createMap(java.util.stream.Stream<com.mojang.datafixers.util.Pair<T,T>> p_createMap_1_)
- 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
public com.mojang.serialization.DataResult<java.util.stream.Stream<T>> getStream(T p_getStream_1_)
- Specified by:
getStream
in interfacecom.mojang.serialization.DynamicOps<T>
-
getList
public com.mojang.serialization.DataResult<java.util.function.Consumer<java.util.function.Consumer<T>>> getList(T p_getList_1_)
- Specified by:
getList
in interfacecom.mojang.serialization.DynamicOps<T>
-
createList
public T createList(java.util.stream.Stream<T> p_createList_1_)
- Specified by:
createList
in interfacecom.mojang.serialization.DynamicOps<T>
-
getByteBuffer
public com.mojang.serialization.DataResult<java.nio.ByteBuffer> getByteBuffer(T p_getByteBuffer_1_)
- Specified by:
getByteBuffer
in interfacecom.mojang.serialization.DynamicOps<T>
-
createByteList
public T createByteList(java.nio.ByteBuffer p_createByteList_1_)
- Specified by:
createByteList
in interfacecom.mojang.serialization.DynamicOps<T>
-
getIntStream
public com.mojang.serialization.DataResult<java.util.stream.IntStream> getIntStream(T p_getIntStream_1_)
- Specified by:
getIntStream
in interfacecom.mojang.serialization.DynamicOps<T>
-
createIntList
public T createIntList(java.util.stream.IntStream p_createIntList_1_)
- Specified by:
createIntList
in interfacecom.mojang.serialization.DynamicOps<T>
-
getLongStream
public com.mojang.serialization.DataResult<java.util.stream.LongStream> getLongStream(T p_getLongStream_1_)
- Specified by:
getLongStream
in interfacecom.mojang.serialization.DynamicOps<T>
-
createLongList
public T createLongList(java.util.stream.LongStream p_createLongList_1_)
- Specified by:
createLongList
in interfacecom.mojang.serialization.DynamicOps<T>
-
remove
public T remove(T p_remove_1_, java.lang.String p_remove_2_)
- Specified by:
remove
in interfacecom.mojang.serialization.DynamicOps<T>
-
compressMaps
public boolean compressMaps()
- Specified by:
compressMaps
in interfacecom.mojang.serialization.DynamicOps<T>
-
listBuilder
public com.mojang.serialization.ListBuilder<T> listBuilder()
- Specified by:
listBuilder
in interfacecom.mojang.serialization.DynamicOps<T>
-
-