PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (Tag $root, string $name="") | |
__toString () | |
equals (TreeRoot $that) | |
getName () | |
getTag () | |
mustGetCompoundTag () | |
This class wraps around the root Tag for NBT files to avoid losing the name information.
Definition at line 32 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::__construct | ( | Tag | $root, |
string | $name = "" ) |
Definition at line 39 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::__toString | ( | ) |
Definition at line 69 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::equals | ( | TreeRoot | $that | ) |
Definition at line 65 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::getName | ( | ) |
Definition at line 61 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::getTag | ( | ) |
Definition at line 44 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::mustGetCompoundTag | ( | ) |
Helper to reduce boilerplate code for most common NBT usages that use Compound roots. TODO: this ought to be replaced by schema validation in the future
NbtDataException | if the root is not a Compound |
Definition at line 54 of file TreeRoot.php.