Package net.minecraft.util
Class JavaOps
java.lang.Object
net.minecraft.util.JavaOps
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<Object>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<U> U
createBoolean
(boolean p_311218_) createByte
(byte p_310246_) createByteList
(ByteBuffer p_311887_) createDouble
(double p_310687_) createFloat
(float p_312509_) createInt
(int p_311425_) createIntList
(IntStream p_309802_) createList
(Stream<Object> p_310926_) createLong
(long p_311842_) createLongList
(LongStream p_311993_) createNumeric
(Number p_310132_) createShort
(short p_309486_) createString
(String p_311808_) empty()
emptyMap()
com.mojang.serialization.DataResult<Boolean>
getBooleanValue
(Object p_311560_) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(Object p_309940_) com.mojang.serialization.DataResult<IntStream>
getIntStream
(Object p_312987_) com.mojang.serialization.DataResult<LongStream>
getLongStream
(Object p_313231_) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Object>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<Object,
Object>>> getMapEntries
(Object p_311678_) getMapEntries
(Map<?, ?> p_311276_) getMapValues
(Object p_312683_) com.mojang.serialization.DataResult<Number>
getNumberValue
(Object p_310079_) com.mojang.serialization.DataResult<String>
getStringValue
(Object p_312499_) com.mojang.serialization.RecordBuilder<Object>
mapLikeToMap
(com.mojang.serialization.MapLike<Object> p_310456_) com.mojang.serialization.DataResult<Object>
mergeToList
(Object p_311409_, Object p_310745_) com.mojang.serialization.DataResult<Object>
mergeToList
(Object p_311714_, List<Object> p_310475_) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object p_313174_, com.mojang.serialization.MapLike<Object> p_310148_) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object p_311964_, Object p_311197_, Object p_310964_) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object p_312957_, Map<Object, Object> p_311321_) 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
-
-
Constructor Details
-
JavaOps
private JavaOps()
-
-
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>
-
getNumberValue
- Specified by:
getNumberValue
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createNumeric
- Specified by:
createNumeric
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createByte
- Specified by:
createByte
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createShort
- Specified by:
createShort
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createInt
- Specified by:
createInt
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createLong
- Specified by:
createLong
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createFloat
- Specified by:
createFloat
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createDouble
- Specified by:
createDouble
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getBooleanValue
- Specified by:
getBooleanValue
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createBoolean
- Specified by:
createBoolean
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getStringValue
- Specified by:
getStringValue
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createString
- Specified by:
createString
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mergeToList
public com.mojang.serialization.DataResult<Object> mergeToList(Object p_311714_, List<Object> p_310475_) - Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_311964_, Object p_311197_, Object p_310964_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_312957_, Map<Object, Object> p_311321_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mapLikeToMap
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_313174_, com.mojang.serialization.MapLike<Object> p_310148_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getMapEntries
-
getMapValues
public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<Object,Object>>> getMapValues(Object p_312683_) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getMapEntries
public com.mojang.serialization.DataResult<Consumer<BiConsumer<Object,Object>>> getMapEntries(Object p_311678_) - Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getMap
public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Object>> getMap(Object p_309528_) - Specified by:
getMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getStream
- Specified by:
getStream
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getList
- Specified by:
getList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createList
- Specified by:
createList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getByteBuffer
- Specified by:
getByteBuffer
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createByteList
- Specified by:
createByteList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getIntStream
- Specified by:
getIntStream
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createIntList
- Specified by:
createIntList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getLongStream
- Specified by:
getLongStream
in interfacecom.mojang.serialization.DynamicOps<Object>
-
createLongList
- Specified by:
createLongList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
remove
- Specified by:
remove
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mapBuilder
- Specified by:
mapBuilder
in interfacecom.mojang.serialization.DynamicOps<Object>
-
toString
-