| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Collaboration diagram for pocketmine\nbt\TreeRoot: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.