Package net.minecraft.nbt
Class NBTDynamicOps
java.lang.Object
net.minecraft.nbt.NBTDynamicOps
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<INBT>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<U> U
createBoolean
(boolean p_createBoolean_1_) createByte
(byte p_createByte_1_) createByteList
(ByteBuffer p_createByteList_1_) createDouble
(double p_createDouble_1_) createFloat
(float p_createFloat_1_) private static CollectionNBT<?>
createGenericList
(byte p_240602_0_, byte p_240602_1_) createInt
(int p_createInt_1_) createIntList
(IntStream p_createIntList_1_) createList
(Stream<INBT> p_createList_1_) createLong
(long p_createLong_1_) createLongList
(LongStream p_createLongList_1_) createNumeric
(Number p_createNumeric_1_) createShort
(short p_createShort_1_) createString
(String p_createString_1_) empty()
private static <T extends INBT>
voidfillMany
(CollectionNBT<T> p_240608_0_, INBT p_240608_1_, List<INBT> p_240608_2_) private static <T extends INBT>
voidfillOne
(CollectionNBT<T> p_240609_0_, INBT p_240609_1_, INBT p_240609_2_) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(INBT p_getByteBuffer_1_) com.mojang.serialization.DataResult<IntStream>
getIntStream
(INBT p_getIntStream_1_) com.mojang.serialization.DataResult<LongStream>
getLongStream
(INBT p_getLongStream_1_) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<INBT>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<INBT,
INBT>>> getMapEntries
(INBT p_getMapEntries_1_) getMapValues
(INBT p_getMapValues_1_) com.mojang.serialization.DataResult<Number>
getNumberValue
(INBT p_getNumberValue_1_) com.mojang.serialization.DataResult<String>
getStringValue
(INBT p_getStringValue_1_) com.mojang.serialization.RecordBuilder<INBT>
com.mojang.serialization.DataResult<INBT>
mergeToList
(INBT p_mergeToList_1_, List<INBT> p_mergeToList_2_) com.mojang.serialization.DataResult<INBT>
mergeToList
(INBT p_mergeToList_1_, INBT p_mergeToList_2_) com.mojang.serialization.DataResult<INBT>
mergeToMap
(INBT p_mergeToMap_1_, com.mojang.serialization.MapLike<INBT> p_mergeToMap_2_) com.mojang.serialization.DataResult<INBT>
mergeToMap
(INBT p_mergeToMap_1_, INBT p_mergeToMap_2_, INBT p_mergeToMap_3_) toString()
private static boolean
typesMatch
(byte p_240603_0_, byte p_240603_1_, byte p_240603_2_) 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, createMap, emptyList, emptyMap, get, getBooleanValue, getGeneric, getNumberValue, listBuilder, mergeToMap, mergeToPrimitive, set, update, updateGeneric, withDecoder, withEncoder, withParser
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NBTDynamicOps
protected NBTDynamicOps()
-
-
Method Details
-
empty
- Specified by:
empty
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
convertTo
- Specified by:
convertTo
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getNumberValue
- Specified by:
getNumberValue
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createNumeric
- Specified by:
createNumeric
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createByte
- Specified by:
createByte
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createShort
- Specified by:
createShort
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createInt
- Specified by:
createInt
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createLong
- Specified by:
createLong
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createFloat
- Specified by:
createFloat
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createDouble
- Specified by:
createDouble
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createBoolean
- Specified by:
createBoolean
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getStringValue
- Specified by:
getStringValue
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createString
- Specified by:
createString
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createGenericList
-
typesMatch
private static boolean typesMatch(byte p_240603_0_, byte p_240603_1_, byte p_240603_2_) -
fillOne
private static <T extends INBT> void fillOne(CollectionNBT<T> p_240609_0_, INBT p_240609_1_, INBT p_240609_2_) -
fillMany
private static <T extends INBT> void fillMany(CollectionNBT<T> p_240608_0_, INBT p_240608_1_, List<INBT> p_240608_2_) -
mergeToList
public com.mojang.serialization.DataResult<INBT> mergeToList(INBT p_mergeToList_1_, INBT p_mergeToList_2_) - Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
mergeToList
public com.mojang.serialization.DataResult<INBT> mergeToList(INBT p_mergeToList_1_, List<INBT> p_mergeToList_2_) - Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
mergeToMap
public com.mojang.serialization.DataResult<INBT> mergeToMap(INBT p_mergeToMap_1_, INBT p_mergeToMap_2_, INBT p_mergeToMap_3_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
mergeToMap
public com.mojang.serialization.DataResult<INBT> mergeToMap(INBT p_mergeToMap_1_, com.mojang.serialization.MapLike<INBT> p_mergeToMap_2_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getMapValues
public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<INBT,INBT>>> getMapValues(INBT p_getMapValues_1_) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getMapEntries
public com.mojang.serialization.DataResult<Consumer<BiConsumer<INBT,INBT>>> getMapEntries(INBT p_getMapEntries_1_) - Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getMap
public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<INBT>> getMap(INBT p_getMap_1_) - Specified by:
getMap
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getStream
- Specified by:
getStream
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getList
- Specified by:
getList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getByteBuffer
- Specified by:
getByteBuffer
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createByteList
- Specified by:
createByteList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getIntStream
- Specified by:
getIntStream
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createIntList
- Specified by:
createIntList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
getLongStream
- Specified by:
getLongStream
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createLongList
- Specified by:
createLongList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
createList
- Specified by:
createList
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
remove
- Specified by:
remove
in interfacecom.mojang.serialization.DynamicOps<INBT>
-
toString
-
mapBuilder
- Specified by:
mapBuilder
in interfacecom.mojang.serialization.DynamicOps<INBT>
-