Does the same job opOpAssign does, but creates a new instance of typeof(this) with the same name of the tag and returns it.
Concatenates T, an array of T or a NBT array of T to the tag.
Removes the element at the given index from the array.
Checks whether or not the array's length is equals to 0.
Gets the tag's type.
Indicates whether the tag has a name.
Gets the tag's name, if there's one.
Creates a NamedTag maintaing the tag's properties.
Encodes the tag's body.
Decodes the tag's body.
Encodes the tag's value as json.
Encodes the tag a human-readable string.
assert(new ByteArray([2, 3, 4]).length == new IntArray([9, 0, 12]).length); auto b = new ByteArray(); assert(b.empty); b ~= 14; assert(b.length == 1 && b[0] == 14);
Simple tag with array-related functions.