nbtd.NBTCompound



class NBTCompound: nbtd.INBTItem.INBTItem;
NBT Compound containing a array of named items.

T get(T : INBTItem = INBTItem)(string name, bool throwOnError = true);
Returns:
the item with the name
name
.

Params:
string name Name to search for.
bool throwOnError When false, returns null instead of throwing an exception.

Throws:
Exception when unable to cast to the target type.

Throws:
Exception when unable to find
name
in the array.

string toString();
Returns:
"NBTCompound('name') = {[each ChildElement.toString()]}"


INBTItem opIndex(string index);
See Also:
get

INBTItem opIndexAssign(INBTItem item, string index);
Sets the value at
index
to a duplicate of item and will rename the item name to
index
.


Page generated by Ddoc.