|
PocketMine-MP 5.37.1 git-da6732df2656426fbd1b7898ed06c8286969d2f1
|
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.