public abstract class ForwardingDynamicOps<T> extends Object implements com.mojang.serialization.DynamicOps<T>
Modifier and Type | Field and Description |
---|---|
protected com.mojang.serialization.DynamicOps<T> |
delegate |
Modifier | Constructor and Description |
---|---|
protected |
ForwardingDynamicOps(com.mojang.serialization.DynamicOps<T> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
compressMaps() |
<U> U |
convertTo(com.mojang.serialization.DynamicOps<U> dynamicOps,
T t) |
T |
createBoolean(boolean bool) |
T |
createByte(byte byte2) |
T |
createByteList(ByteBuffer byteBuffer) |
T |
createDouble(double double2) |
T |
createFloat(float float2) |
T |
createInt(int int2) |
T |
createIntList(IntStream intStream) |
T |
createList(Stream<T> stream) |
T |
createLong(long long2) |
T |
createLongList(LongStream longStream) |
T |
createMap(Stream<com.mojang.datafixers.util.Pair<T,T>> stream) |
T |
createNumeric(Number number) |
T |
createShort(short short2) |
T |
createString(String string) |
T |
empty() |
com.mojang.serialization.DataResult<Boolean> |
getBooleanValue(T t) |
com.mojang.serialization.DataResult<ByteBuffer> |
getByteBuffer(T t) |
com.mojang.serialization.DataResult<IntStream> |
getIntStream(T t) |
com.mojang.serialization.DataResult<Consumer<Consumer<T>>> |
getList(T t) |
com.mojang.serialization.DataResult<LongStream> |
getLongStream(T t) |
com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>> |
getMap(T t) |
com.mojang.serialization.DataResult<Consumer<BiConsumer<T,T>>> |
getMapEntries(T t) |
com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<T,T>>> |
getMapValues(T t) |
com.mojang.serialization.DataResult<Number> |
getNumberValue(T t) |
com.mojang.serialization.DataResult<Stream<T>> |
getStream(T t) |
com.mojang.serialization.DataResult<String> |
getStringValue(T t) |
com.mojang.serialization.ListBuilder<T> |
listBuilder() |
com.mojang.serialization.RecordBuilder<T> |
mapBuilder() |
com.mojang.serialization.DataResult<T> |
mergeToList(T t,
List<T> list) |
com.mojang.serialization.DataResult<T> |
mergeToList(T t,
T t2) |
com.mojang.serialization.DataResult<T> |
mergeToMap(T t,
com.mojang.serialization.MapLike<T> mapLike) |
com.mojang.serialization.DataResult<T> |
mergeToMap(T t,
T t2,
T t3) |
T |
remove(T t,
String string) |
protected final com.mojang.serialization.DynamicOps<T> delegate
protected ForwardingDynamicOps(com.mojang.serialization.DynamicOps<T> delegate)
public <U> U convertTo(com.mojang.serialization.DynamicOps<U> dynamicOps, T t)
convertTo
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<Number> getNumberValue(T t)
getNumberValue
in interface com.mojang.serialization.DynamicOps<T>
public T createNumeric(Number number)
createNumeric
in interface com.mojang.serialization.DynamicOps<T>
public T createByte(byte byte2)
createByte
in interface com.mojang.serialization.DynamicOps<T>
public T createShort(short short2)
createShort
in interface com.mojang.serialization.DynamicOps<T>
public T createInt(int int2)
createInt
in interface com.mojang.serialization.DynamicOps<T>
public T createLong(long long2)
createLong
in interface com.mojang.serialization.DynamicOps<T>
public T createFloat(float float2)
createFloat
in interface com.mojang.serialization.DynamicOps<T>
public T createDouble(double double2)
createDouble
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<Boolean> getBooleanValue(T t)
getBooleanValue
in interface com.mojang.serialization.DynamicOps<T>
public T createBoolean(boolean bool)
createBoolean
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<String> getStringValue(T t)
getStringValue
in interface com.mojang.serialization.DynamicOps<T>
public T createString(String string)
createString
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<T> mergeToList(T t, T t2)
mergeToList
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<T> mergeToList(T t, List<T> list)
mergeToList
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<T> mergeToMap(T t, T t2, T t3)
mergeToMap
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<T> mergeToMap(T t, com.mojang.serialization.MapLike<T> mapLike)
mergeToMap
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<T,T>>> getMapValues(T t)
getMapValues
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<Consumer<BiConsumer<T,T>>> getMapEntries(T t)
getMapEntries
in interface com.mojang.serialization.DynamicOps<T>
public T createMap(Stream<com.mojang.datafixers.util.Pair<T,T>> stream)
createMap
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>> getMap(T t)
getMap
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<Stream<T>> getStream(T t)
getStream
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<Consumer<Consumer<T>>> getList(T t)
getList
in interface com.mojang.serialization.DynamicOps<T>
public T createList(Stream<T> stream)
createList
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<ByteBuffer> getByteBuffer(T t)
getByteBuffer
in interface com.mojang.serialization.DynamicOps<T>
public T createByteList(ByteBuffer byteBuffer)
createByteList
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<IntStream> getIntStream(T t)
getIntStream
in interface com.mojang.serialization.DynamicOps<T>
public T createIntList(IntStream intStream)
createIntList
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.DataResult<LongStream> getLongStream(T t)
getLongStream
in interface com.mojang.serialization.DynamicOps<T>
public T createLongList(LongStream longStream)
createLongList
in interface com.mojang.serialization.DynamicOps<T>
public T remove(T t, String string)
remove
in interface com.mojang.serialization.DynamicOps<T>
public boolean compressMaps()
compressMaps
in interface com.mojang.serialization.DynamicOps<T>
public com.mojang.serialization.ListBuilder<T> listBuilder()
listBuilder
in interface com.mojang.serialization.DynamicOps<T>