The value that this NBTTag holds.
The value that this NBTTag holds.
Creates a new NBTCompound with the pair appended.
Creates a new NBTCompound with the hlist appended.
Creates a new NBTCompound with the hlist appended. If there exists duplicate values. it uses the second one
Tries to get a value in this NBTCompound, or throws an NoSuchElementException if no value is found.
Get a tag from this NBTCompound
Tries to get a NBTTag nested in multiple NBTCompound.
Tries to get a NBTTag nested in multiple NBTCompound.
Example:
val compound = NBTCompound().set("first" NBTCompound().set("second", NBTString("hi"))) assert(compound.getRecursive("first", "second") == NBTString("hi"))
Same as getRecursive, but with a value instead of a NBTTag.
Same as getRecursive, but with a value instead of a NBTTag.
Tries to get an java.util.UUID created with setUUID.
Gets a value from this if it exists at the specified key, and it can be converted to the specified value.
Checks if this NBTCompound has a specific key.
Merges this NBTCompound with another, and if a conflict arises, uses the second one.
Tries to merge this NBTCompound with another.
Tries to merge this NBTCompound with another. If a situation where both compounds contain some value with the same key arises, the merge function is used.
The type of this NBTTag
The type of this NBTTag
Associates a specific tag to a specific key.
Associates a specific tag to a specific key.
The key to bind to.
The tag to set.
An scala.Option with the previous value of the used key, or None if the key was not already used.
Creates two NBTLong tags from the UUID and sets the tags.
Creates two NBTLong tags from the UUID and sets the tags.
This method differs in behavior from NBTViewInstances.UUIDView. If you want compatibility with vanilla, use this.
The key of the two tags are key + "Most" for the most significant bits, and key + "Least" for the least significant bits.
The same things goes for this as for set, only here you have a scala.collection.Seq instead of an scala.Option
Creates a NBTTag from the type passed in, and adds it to the compound.
Creates a NBTTag from the type passed in, and adds it to the compound.
The type to convert from
The tag to convert to
The key to bind to.
The value top set
The converter to convert the value to a NBTTag
The size of this compound.
Creates a new NBTCompound with the key-value pair appended.
The value of this NBTTag
The value of this NBTTag