Package net.minecraft.nbt
Class NbtOps
java.lang.Object
net.minecraft.nbt.NbtOps
- All Implemented Interfaces:
com.mojang.serialization.DynamicOps<Tag>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<U> U
createBoolean
(boolean p_129050_) createByte
(byte p_128963_) createByteList
(ByteBuffer p_128990_) createDouble
(double p_128972_) createFloat
(float p_128974_) private static CollectionTag<?>
createGenericList
(byte p_128965_, byte p_128966_) createInt
(int p_128976_) createIntList
(IntStream p_129000_) createList
(Stream<Tag> p_129052_) createLong
(long p_128978_) createLongList
(LongStream p_129002_) createNumeric
(Number p_128983_) createShort
(short p_129048_) createString
(String p_128985_) empty()
private static <T extends Tag>
voidfillMany
(CollectionTag<T> p_129009_, Tag p_129010_, List<Tag> p_129011_) private static <T extends Tag>
voidfillOne
(CollectionTag<T> p_129013_, Tag p_129014_, Tag p_129015_) com.mojang.serialization.DataResult<ByteBuffer>
getByteBuffer
(Tag p_129132_) com.mojang.serialization.DataResult<IntStream>
getIntStream
(Tag p_129134_) com.mojang.serialization.DataResult<LongStream>
getLongStream
(Tag p_129136_) com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Tag>>
com.mojang.serialization.DataResult<Consumer<BiConsumer<Tag,
Tag>>> getMapEntries
(Tag p_129103_) getMapValues
(Tag p_129070_) com.mojang.serialization.DataResult<Number>
getNumberValue
(Tag p_129030_) com.mojang.serialization.DataResult<String>
getStringValue
(Tag p_129061_) com.mojang.serialization.RecordBuilder<Tag>
com.mojang.serialization.DataResult<Tag>
mergeToList
(Tag p_129038_, List<Tag> p_129039_) com.mojang.serialization.DataResult<Tag>
mergeToList
(Tag p_129041_, Tag p_129042_) com.mojang.serialization.DataResult<Tag>
mergeToMap
(Tag p_129032_, com.mojang.serialization.MapLike<Tag> p_129033_) com.mojang.serialization.DataResult<Tag>
mergeToMap
(Tag p_129044_, Tag p_129045_, Tag p_129046_) toString()
private static boolean
typesMatch
(byte p_128968_, byte p_128969_, byte p_128970_) 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
-
NbtOps
protected NbtOps()
-
-
Method Details
-
empty
- Specified by:
empty
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
convertTo
- Specified by:
convertTo
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getNumberValue
- Specified by:
getNumberValue
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createNumeric
- Specified by:
createNumeric
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createByte
- Specified by:
createByte
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createShort
- Specified by:
createShort
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createInt
- Specified by:
createInt
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createLong
- Specified by:
createLong
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createFloat
- Specified by:
createFloat
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createDouble
- Specified by:
createDouble
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createBoolean
- Specified by:
createBoolean
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getStringValue
- Specified by:
getStringValue
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createString
- Specified by:
createString
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createGenericList
-
typesMatch
private static boolean typesMatch(byte p_128968_, byte p_128969_, byte p_128970_) -
fillOne
private static <T extends Tag> void fillOne(CollectionTag<T> p_129013_, Tag p_129014_, Tag p_129015_) -
fillMany
private static <T extends Tag> void fillMany(CollectionTag<T> p_129009_, Tag p_129010_, List<Tag> p_129011_) -
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
mergeToList
- Specified by:
mergeToList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
mergeToMap
public com.mojang.serialization.DataResult<Tag> mergeToMap(Tag p_129044_, Tag p_129045_, Tag p_129046_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
mergeToMap
public com.mojang.serialization.DataResult<Tag> mergeToMap(Tag p_129032_, com.mojang.serialization.MapLike<Tag> p_129033_) - Specified by:
mergeToMap
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getMapValues
public com.mojang.serialization.DataResult<Stream<com.mojang.datafixers.util.Pair<Tag,Tag>>> getMapValues(Tag p_129070_) - Specified by:
getMapValues
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getMapEntries
public com.mojang.serialization.DataResult<Consumer<BiConsumer<Tag,Tag>>> getMapEntries(Tag p_129103_) - Specified by:
getMapEntries
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getMap
public com.mojang.serialization.DataResult<com.mojang.serialization.MapLike<Tag>> getMap(Tag p_129105_) - Specified by:
getMap
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createMap
- Specified by:
createMap
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getStream
- Specified by:
getStream
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getList
- Specified by:
getList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getByteBuffer
- Specified by:
getByteBuffer
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createByteList
- Specified by:
createByteList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getIntStream
- Specified by:
getIntStream
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createIntList
- Specified by:
createIntList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
getLongStream
- Specified by:
getLongStream
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createLongList
- Specified by:
createLongList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
createList
- Specified by:
createList
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
remove
- Specified by:
remove
in interfacecom.mojang.serialization.DynamicOps<Tag>
-
toString
-
mapBuilder
- Specified by:
mapBuilder
in interfacecom.mojang.serialization.DynamicOps<Tag>
-