Package net.minecraft.util.dynamic
Class ForwardingDynamicOps<T>
java.lang.Object
net.minecraft.util.dynamic.ForwardingDynamicOps<T>
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<T>
- Direct Known Subclasses:
RegistryOps
,RegistryReadingOps
public abstract class ForwardingDynamicOps<T>
extends Object
implements com.mojang.serialization.DynamicOps<T>
A dynamic ops that delegates all operations from another one.
- Mappings:
Namespace Name official xt
intermediary net/minecraft/class_5379
named net/minecraft/util/dynamic/ForwardingDynamicOps
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ForwardingDynamicOps
(com.mojang.serialization.DynamicOps<T> delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
<U> U
createBoolean
(boolean bool) createByte
(byte byte2) createByteList
(ByteBuffer byteBuffer) createDouble
(double double2) createFloat
(float float2) createInt
(int int2) createIntList
(IntStream intStream) createList
(Stream<T> stream) createLong
(long long2) createLongList
(LongStream longStream) createNumeric
(Number number) createShort
(short short2) createString
(String string) 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<LongStream>
getLongStream
(T t) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<T>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<T,
T>>> getMapEntries
(T t) getMapValues
(T t) com.mojang.serialization.DataResult<Number>
getNumberValue
(T t) com.mojang.serialization.DataResult<String>
getStringValue
(T t) com.mojang.serialization.ListBuilder<T>
com.mojang.serialization.RecordBuilder<T>
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) 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
- Mappings:
Namespace Name Mixin selector official a
Lxt;a:Lcom/mojang/serialization/DynamicOps;
intermediary field_25503
Lnet/minecraft/class_5379;field_25503:Lcom/mojang/serialization/DynamicOps;
named delegate
Lnet/minecraft/util/dynamic/ForwardingDynamicOps;delegate:Lcom/mojang/serialization/DynamicOps;
-
-
Constructor Details
-
ForwardingDynamicOps
- Mappings:
Namespace Name Mixin selector official <init>
Lxt;<init>(Lcom/mojang/serialization/DynamicOps;)V
intermediary <init>
Lnet/minecraft/class_5379;<init>(Lcom/mojang/serialization/DynamicOps;)V
named <init>
Lnet/minecraft/util/dynamic/ForwardingDynamicOps;<init>(Lcom/mojang/serialization/DynamicOps;)V
-
-
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 t, com.mojang.serialization.MapLike<T> mapLike) - 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 t) - 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>
-