NBTList

A List containing unnamed NBT Items.

Constructors

this
this(INBTItem[] items, string name)
Undocumented in source.

Members

Functions

decode
void decode(ubyte[] data, bool compressed, bool hasName)
Undocumented in source. Be warned that the author may not have intended to support it.
encode
ubyte[] encode(bool compressed, bool hasName)
Undocumented in source. Be warned that the author may not have intended to support it.
get
T get(size_t index)
opBinary
NBTList opBinary(INBTItem item)

Duplicates the List and appends an item to it if operator is ~. Otherwise static assert(0)

opDollar
size_t opDollar()
opIndex
INBTItem opIndex(size_t index)
opIndex
INBTItem[] opIndex()
opOpAssign
NBTList opOpAssign(INBTItem item)

Appends an item to this if operator is ~. Otherwise static assert(0)

opOpAssign
NBTList opOpAssign(INBTItem[] items)

Appends multiple items to this if operator is ~. Otherwise static assert(0)

opSlice
INBTItem[] opSlice(size_t start, size_t end)
read
void read(ubyte[] stream, bool hasName)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
toString
string toString(int lineLength)

Properties

dup
INBTItem dup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
elementType
ref elementType [@property getter]

Gets/Sets the type of the array. Will automatically get overwritten when array length is 0 and new values are assigned.

length
size_t length [@property getter]
name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
int size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
type
NBTType type [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
INBTItem[] value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
INBTItem[] value [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta