"Sputnik" help  
Sputnik Help
NbtClone(<nbt>)

Description

Creates a clone of an existing NBT (Named Binary Tag) object.

Parameters

<nbt> The NBT object to be cloned.

Return Value

Success: Returns a new NBT object that is a clone of the original NBT object.
Failure: Returns null.

Remarks

The NbtClone function creates a deep copy of the given NBT object. The resulting NBT object will have the same value and type as the original NBT object, but will be a separate instance in memory.

Related

Example

Example of usage:

my $nbt = Nbt("Hello World");
my $nbtClone = NbtClone($nbt);
say NbtToVar($nbtClone);

// PRINTS
// Hello World

 


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