Package net.minecraft.util.dynamic
Class RuntimeOps
java.lang.Object
net.minecraft.util.dynamic.RuntimeOps
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<Object>
A dynamic ops that "serializes" data to a Java runtime representation.
This is most useful when combined with another ops.
The objects must be one of: numbers, booleans, string, Map
, List
,
ByteList
, IntList
, or LongList
.
Arrays are not supported.
- See Also:
- Mappings:
Namespace Name official auh
intermediary net/minecraft/class_8806
named net/minecraft/util/dynamic/RuntimeOps
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<U> U
createBoolean
(boolean value) createByte
(byte value) createByteList
(ByteBuffer buf) createDouble
(double value) createFloat
(float value) createInt
(int value) createIntList
(IntStream stream) createList
(Stream<Object> stream) createLong
(long value) createLongList
(LongStream stream) createNumeric
(Number value) createShort
(short value) createString
(String value) empty()
emptyMap()
com.mojang.serialization.DataResult<Boolean>
getBooleanValue
(Object object) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(Object byteList) com.mojang.serialization.DataResult<IntStream>
getIntStream
(Object intList) com.mojang.serialization.DataResult<LongStream>
getLongStream
(Object longList) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Object>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<Object,
Object>>> getMapEntries
(Object map) getMapValues
(Object map) com.mojang.serialization.DataResult<Number>
getNumberValue
(Object object) com.mojang.serialization.DataResult<String>
getStringValue
(Object object) com.mojang.serialization.RecordBuilder<Object>
com.mojang.serialization.DataResult<Object>
mergeToList
(Object list, Object value) com.mojang.serialization.DataResult<Object>
mergeToList
(Object list, List<Object> values) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object map, com.mojang.serialization.MapLike<Object> map2) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object map, Object key, Object value) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object map, Map<Object, Object> map2) streamEntries
(Map<?, ?> map) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mojang.serialization.DynamicOps
compressMaps, convertList, convertMap, get, getGeneric, getNumberValue, listBuilder, mergeToPrimitive, set, update, updateGeneric, withDecoder, withEncoder, withParser
-
Field Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official a
Lauh;a:Lauh;
intermediary field_46239
Lnet/minecraft/class_8806;field_46239:Lnet/minecraft/class_8806;
named INSTANCE
Lnet/minecraft/util/dynamic/RuntimeOps;INSTANCE:Lnet/minecraft/util/dynamic/RuntimeOps;
-
-
Constructor Details
-
RuntimeOps
private RuntimeOps()
-
-
Method Details
-
empty
- Specified by:
empty
in interfacecom.mojang.serialization.DynamicOps<Object>
-
emptyMap
- Specified by:
emptyMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
emptyList
- Specified by:
emptyList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
convertTo
- Specified by:
convertTo
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official convertTo
Lauh;convertTo(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Ljava/lang/Object;
intermediary convertTo
Lnet/minecraft/class_8806;convertTo(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Ljava/lang/Object;
named convertTo
Lnet/minecraft/util/dynamic/RuntimeOps;convertTo(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Ljava/lang/Object;
-
getNumberValue
- Specified by:
getNumberValue
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getNumberValue
Lauh;getNumberValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getNumberValue
Lnet/minecraft/class_8806;getNumberValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getNumberValue
Lnet/minecraft/util/dynamic/RuntimeOps;getNumberValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createNumeric
- Specified by:
createNumeric
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createNumeric
Lauh;createNumeric(Ljava/lang/Number;)Ljava/lang/Object;
intermediary createNumeric
Lnet/minecraft/class_8806;createNumeric(Ljava/lang/Number;)Ljava/lang/Object;
named createNumeric
Lnet/minecraft/util/dynamic/RuntimeOps;createNumeric(Ljava/lang/Number;)Ljava/lang/Object;
-
createByte
- Specified by:
createByte
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createByte
Lauh;createByte(B)Ljava/lang/Object;
intermediary createByte
Lnet/minecraft/class_8806;createByte(B)Ljava/lang/Object;
named createByte
Lnet/minecraft/util/dynamic/RuntimeOps;createByte(B)Ljava/lang/Object;
-
createShort
- Specified by:
createShort
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createShort
Lauh;createShort(S)Ljava/lang/Object;
intermediary createShort
Lnet/minecraft/class_8806;createShort(S)Ljava/lang/Object;
named createShort
Lnet/minecraft/util/dynamic/RuntimeOps;createShort(S)Ljava/lang/Object;
-
createInt
- Specified by:
createInt
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createInt
Lauh;createInt(I)Ljava/lang/Object;
intermediary createInt
Lnet/minecraft/class_8806;createInt(I)Ljava/lang/Object;
named createInt
Lnet/minecraft/util/dynamic/RuntimeOps;createInt(I)Ljava/lang/Object;
-
createLong
- Specified by:
createLong
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createLong
Lauh;createLong(J)Ljava/lang/Object;
intermediary createLong
Lnet/minecraft/class_8806;createLong(J)Ljava/lang/Object;
named createLong
Lnet/minecraft/util/dynamic/RuntimeOps;createLong(J)Ljava/lang/Object;
-
createFloat
- Specified by:
createFloat
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createFloat
Lauh;createFloat(F)Ljava/lang/Object;
intermediary createFloat
Lnet/minecraft/class_8806;createFloat(F)Ljava/lang/Object;
named createFloat
Lnet/minecraft/util/dynamic/RuntimeOps;createFloat(F)Ljava/lang/Object;
-
createDouble
- Specified by:
createDouble
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createDouble
Lauh;createDouble(D)Ljava/lang/Object;
intermediary createDouble
Lnet/minecraft/class_8806;createDouble(D)Ljava/lang/Object;
named createDouble
Lnet/minecraft/util/dynamic/RuntimeOps;createDouble(D)Ljava/lang/Object;
-
getBooleanValue
- Specified by:
getBooleanValue
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getBooleanValue
Lauh;getBooleanValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getBooleanValue
Lnet/minecraft/class_8806;getBooleanValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getBooleanValue
Lnet/minecraft/util/dynamic/RuntimeOps;getBooleanValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createBoolean
- Specified by:
createBoolean
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createBoolean
Lauh;createBoolean(Z)Ljava/lang/Object;
intermediary createBoolean
Lnet/minecraft/class_8806;createBoolean(Z)Ljava/lang/Object;
named createBoolean
Lnet/minecraft/util/dynamic/RuntimeOps;createBoolean(Z)Ljava/lang/Object;
-
getStringValue
- Specified by:
getStringValue
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getStringValue
Lauh;getStringValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getStringValue
Lnet/minecraft/class_8806;getStringValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getStringValue
Lnet/minecraft/util/dynamic/RuntimeOps;getStringValue(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createString
- Specified by:
createString
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createString
Lauh;createString(Ljava/lang/String;)Ljava/lang/Object;
intermediary createString
Lnet/minecraft/class_8806;createString(Ljava/lang/String;)Ljava/lang/Object;
named createString
Lnet/minecraft/util/dynamic/RuntimeOps;createString(Ljava/lang/String;)Ljava/lang/Object;
-
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official mergeToList
Lauh;mergeToList(Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary mergeToList
Lnet/minecraft/class_8806;mergeToList(Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named mergeToList
Lnet/minecraft/util/dynamic/RuntimeOps;mergeToList(Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official mergeToList
Lauh;mergeToList(Ljava/lang/Object;Ljava/util/List;)Lcom/mojang/serialization/DataResult;
intermediary mergeToList
Lnet/minecraft/class_8806;mergeToList(Ljava/lang/Object;Ljava/util/List;)Lcom/mojang/serialization/DataResult;
named mergeToList
Lnet/minecraft/util/dynamic/RuntimeOps;mergeToList(Ljava/lang/Object;Ljava/util/List;)Lcom/mojang/serialization/DataResult;
-
mergeToMap
- Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official mergeToMap
Lauh;mergeToMap(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary mergeToMap
Lnet/minecraft/class_8806;mergeToMap(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named mergeToMap
Lnet/minecraft/util/dynamic/RuntimeOps;mergeToMap(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
mergeToMap
- Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official mergeToMap
Lauh;mergeToMap(Ljava/lang/Object;Ljava/util/Map;)Lcom/mojang/serialization/DataResult;
intermediary mergeToMap
Lnet/minecraft/class_8806;mergeToMap(Ljava/lang/Object;Ljava/util/Map;)Lcom/mojang/serialization/DataResult;
named mergeToMap
Lnet/minecraft/util/dynamic/RuntimeOps;mergeToMap(Ljava/lang/Object;Ljava/util/Map;)Lcom/mojang/serialization/DataResult;
-
toMap
- Mappings:
Namespace Name Mixin selector official a
Lauh;a(Lcom/mojang/serialization/MapLike;)Ljava/util/Map;
intermediary method_53923
Lnet/minecraft/class_8806;method_53923(Lcom/mojang/serialization/MapLike;)Ljava/util/Map;
named toMap
Lnet/minecraft/util/dynamic/RuntimeOps;toMap(Lcom/mojang/serialization/MapLike;)Ljava/util/Map;
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object map, com.mojang.serialization.MapLike<Object> map2) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official mergeToMap
Lauh;mergeToMap(Ljava/lang/Object;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
intermediary mergeToMap
Lnet/minecraft/class_8806;mergeToMap(Ljava/lang/Object;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
named mergeToMap
Lnet/minecraft/util/dynamic/RuntimeOps;mergeToMap(Ljava/lang/Object;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
-
streamEntries
- Mappings:
Namespace Name Mixin selector official a
Lauh;a(Ljava/util/Map;)Ljava/util/stream/Stream;
intermediary method_53926
Lnet/minecraft/class_8806;method_53926(Ljava/util/Map;)Ljava/util/stream/Stream;
named streamEntries
Lnet/minecraft/util/dynamic/RuntimeOps;streamEntries(Ljava/util/Map;)Ljava/util/stream/Stream;
-
getMapValues
public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<Object,Object>>> getMapValues(Object map) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getMapValues
Lauh;getMapValues(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getMapValues
Lnet/minecraft/class_8806;getMapValues(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getMapValues
Lnet/minecraft/util/dynamic/RuntimeOps;getMapValues(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
getMapEntries
public com.mojang.serialization.DataResult<Consumer<BiConsumer<Object,Object>>> getMapEntries(Object map) - Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getMapEntries
Lauh;getMapEntries(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getMapEntries
Lnet/minecraft/class_8806;getMapEntries(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getMapEntries
Lnet/minecraft/util/dynamic/RuntimeOps;getMapEntries(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createMap
Lauh;createMap(Ljava/util/stream/Stream;)Ljava/lang/Object;
intermediary createMap
Lnet/minecraft/class_8806;createMap(Ljava/util/stream/Stream;)Ljava/lang/Object;
named createMap
Lnet/minecraft/util/dynamic/RuntimeOps;createMap(Ljava/util/stream/Stream;)Ljava/lang/Object;
-
getMap
public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Object>> getMap(Object map) - Specified by:
getMap
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getMap
Lauh;getMap(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getMap
Lnet/minecraft/class_8806;getMap(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getMap
Lnet/minecraft/util/dynamic/RuntimeOps;getMap(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createMap
Lauh;createMap(Ljava/util/Map;)Ljava/lang/Object;
intermediary createMap
Lnet/minecraft/class_8806;createMap(Ljava/util/Map;)Ljava/lang/Object;
named createMap
Lnet/minecraft/util/dynamic/RuntimeOps;createMap(Ljava/util/Map;)Ljava/lang/Object;
-
getStream
- Specified by:
getStream
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getStream
Lauh;getStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getStream
Lnet/minecraft/class_8806;getStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getStream
Lnet/minecraft/util/dynamic/RuntimeOps;getStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
getList
- Specified by:
getList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getList
Lauh;getList(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getList
Lnet/minecraft/class_8806;getList(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getList
Lnet/minecraft/util/dynamic/RuntimeOps;getList(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createList
- Specified by:
createList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createList
Lauh;createList(Ljava/util/stream/Stream;)Ljava/lang/Object;
intermediary createList
Lnet/minecraft/class_8806;createList(Ljava/util/stream/Stream;)Ljava/lang/Object;
named createList
Lnet/minecraft/util/dynamic/RuntimeOps;createList(Ljava/util/stream/Stream;)Ljava/lang/Object;
-
getByteBuffer
- Specified by:
getByteBuffer
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getByteBuffer
Lauh;getByteBuffer(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getByteBuffer
Lnet/minecraft/class_8806;getByteBuffer(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getByteBuffer
Lnet/minecraft/util/dynamic/RuntimeOps;getByteBuffer(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createByteList
- Specified by:
createByteList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createByteList
Lauh;createByteList(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
intermediary createByteList
Lnet/minecraft/class_8806;createByteList(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
named createByteList
Lnet/minecraft/util/dynamic/RuntimeOps;createByteList(Ljava/nio/ByteBuffer;)Ljava/lang/Object;
-
getIntStream
- Specified by:
getIntStream
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getIntStream
Lauh;getIntStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getIntStream
Lnet/minecraft/class_8806;getIntStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getIntStream
Lnet/minecraft/util/dynamic/RuntimeOps;getIntStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createIntList
- Specified by:
createIntList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createIntList
Lauh;createIntList(Ljava/util/stream/IntStream;)Ljava/lang/Object;
intermediary createIntList
Lnet/minecraft/class_8806;createIntList(Ljava/util/stream/IntStream;)Ljava/lang/Object;
named createIntList
Lnet/minecraft/util/dynamic/RuntimeOps;createIntList(Ljava/util/stream/IntStream;)Ljava/lang/Object;
-
getLongStream
- Specified by:
getLongStream
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official getLongStream
Lauh;getLongStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary getLongStream
Lnet/minecraft/class_8806;getLongStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named getLongStream
Lnet/minecraft/util/dynamic/RuntimeOps;getLongStream(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
createLongList
- Specified by:
createLongList
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official createLongList
Lauh;createLongList(Ljava/util/stream/LongStream;)Ljava/lang/Object;
intermediary createLongList
Lnet/minecraft/class_8806;createLongList(Ljava/util/stream/LongStream;)Ljava/lang/Object;
named createLongList
Lnet/minecraft/util/dynamic/RuntimeOps;createLongList(Ljava/util/stream/LongStream;)Ljava/lang/Object;
-
remove
- Specified by:
remove
in interfacecom.mojang.serialization.DynamicOps<Object>
- Mappings:
Namespace Name Mixin selector official remove
Lauh;remove(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
intermediary remove
Lnet/minecraft/class_8806;remove(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
named remove
Lnet/minecraft/util/dynamic/RuntimeOps;remove(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
-
mapBuilder
- Specified by:
mapBuilder
in interfacecom.mojang.serialization.DynamicOps<Object>
-
toString
-