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_304792_) createByte
(byte p_304455_) createByteList
(ByteBuffer p_304631_) createDouble
(double p_304746_) createFloat
(float p_304906_) createInt
(int p_304438_) createIntList
(IntStream p_304627_) createList
(Stream<Object> p_304863_) createLong
(long p_304654_) createLongList
(LongStream p_304580_) createNumeric
(Number p_304479_) createShort
(short p_304574_) createString
(String p_304874_) empty()
emptyMap()
com.mojang.serialization.DataResult<Boolean>
getBooleanValue
(Object p_304425_) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(Object p_304876_) com.mojang.serialization.DataResult<IntStream>
getIntStream
(Object p_304602_) com.mojang.serialization.DataResult<LongStream>
getLongStream
(Object p_304806_) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Object>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<Object,
Object>>> getMapEntries
(Object p_304526_) getMapEntries
(Map<?, ?> p_304619_) getMapValues
(Object p_304429_) com.mojang.serialization.DataResult<Number>
getNumberValue
(Object p_304427_) com.mojang.serialization.DataResult<String>
getStringValue
(Object p_304765_) com.mojang.serialization.RecordBuilder<Object>
mapLikeToMap
(com.mojang.serialization.MapLike<Object> p_304682_) com.mojang.serialization.DataResult<Object>
mergeToList
(Object p_304918_, Object p_304963_) com.mojang.serialization.DataResult<Object>
mergeToList
(Object p_304825_, List<Object> p_304752_) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object p_304431_, com.mojang.serialization.MapLike<Object> p_304651_) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object p_304566_, Object p_304866_, Object p_304617_) com.mojang.serialization.DataResult<Object>
mergeToMap
(Object p_304844_, Map<Object, Object> p_304663_) 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_304825_, List<Object> p_304752_) - Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_304566_, Object p_304866_, Object p_304617_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_304844_, Map<Object, Object> p_304663_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Object>
-
mapLikeToMap
-
mergeToMap
public com.mojang.serialization.DataResult<Object> mergeToMap(Object p_304431_, com.mojang.serialization.MapLike<Object> p_304651_) - 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_304429_) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<Object>
-
getMapEntries
public com.mojang.serialization.DataResult<Consumer<BiConsumer<Object,Object>>> getMapEntries(Object p_304526_) - 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_304850_) - 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
-