nbtd.NBTList



class NBTList: nbtd.INBTItem.INBTItem;
A List containing unnamed NBT Items.

@property ref auto elementType();
Gets/Sets the type of the array. Will automatically get overwritten when array length is 0 and new values are assigned.

T get(T : INBTItem = INBTItem)(size_t index);
Returns:
the item at the index
index


string toString();
Returns:
the list with at most 100 characters width

string toString(int lineLength);
Returns:
the list with a specified line width.

Returns:
"NBTList('name') = [each element.toString]"


Returns:
if longer than
lineLength
will return
"NBTList('name') = [each el..."


NBTList opBinary(string op)(INBTItem item);
Duplicates the List and appends an item to it if operator is
~
.

Otherwise
static assert(0)


NBTList opOpAssign(string op)(INBTItem item);
Appends an item to
this
if operator is
~
.

Otherwise
static assert(0)


NBTList opOpAssign(string op)(INBTItem[] items);
Appends multiple items to
this
if operator is
~
.

Otherwise
static assert(0)


INBTItem opIndex(size_t index);
Returns:
the item at index
index


INBTItem[] opIndex();
Returns:
a duplicate of
this.value


INBTItem[] opSlice(size_t start, size_t end);
Returns:
a slice of
this.value


size_t opDollar();
Returns:
the length of
this.value


See Also:
length

@property size_t length();
Returns:
the length of
this.value



Page generated by Ddoc.