"Sputnik" help  
Sputnik Help
NbtCompoundGetTags(<nbtCompound>)

Description

Returns an array containing all the NBT tags within an NBT compound.

Parameters

<nbtCompound> The NBT compound from which to retrieve the NBT tags.

Return Value

Success: Returns an array containing all the NBT tags within the NBT compound.
Failure: Returns null if the provided nbtCompound parameter is not a valid NBT compound.

Remarks

The NbtCompoundGetTags function allows you to retrieve an array containing all the NBT tags within an NBT compound. It verifies that the nbtCompound parameter is a valid NBT compound and returns an array of NBT tags present within the compound. The order of the tags in the array corresponds to their occurrence within the compound.

Related

Example

Example of usage:

my $nbt = NbtNew(@NbtCompound);
NbtCompoundSet($nbt, "Cat", "Meow");
NbtCompoundSet($nbt, "Dog", "Woof");
printr NbtCompoundGetTags($nbt);

// PRINTS
// Array
// (
//     [0] => {NBTTag;String:Meow}
//     [1] => {NBTTag;String:Woof}
// )

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org