PocketMine-MP 5.27.1 git-9af3cde03fabbe4129c79e46dc87ffa0fff446e6
|
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 35 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::__construct | ( | Tag | $root, |
string | $name = "" ) |
Definition at line 42 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::__toString | ( | ) |
Definition at line 75 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::equals | ( | TreeRoot | $that | ) |
Definition at line 71 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::getName | ( | ) |
Definition at line 67 of file TreeRoot.php.
pocketmine\nbt\TreeRoot::getTag | ( | ) |
Definition at line 50 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 60 of file TreeRoot.php.