|
Phpcraft
|


Public Member Functions | |
| __construct (string $name, array $children=[]) | |
| hasChild (string $name) | |
| write (Connection $con, bool $inList=false) | |
| copy () | |
| __toString () | |
| toSNBT (bool $fancy=false, bool $inList=false) | |
| current () | |
| next () | |
| key () | |
| valid () | |
| rewind () | |
| offsetExists ($offset) | |
| offsetGet ($offset) | |
| getChild (string $name) | |
| offsetSet ($offset, $value) | |
| addChild (NBT $tag) | |
| offsetUnset ($offset) | |
| count () | |
Public Attributes | |
| const | ORD = 10 |
| $children | |
Public Attributes inherited from Phpcraft\NBT\NBT | |
| const | ORD = null |
| $name | |
Additional Inherited Members | |
Static Public Member Functions inherited from Phpcraft\NBT\NBT | |
| static | fromString (string $nbt) |
| static | fromSNBT (string $snbt, bool $inList=false) |
| static | stringFromSNBT (string $snbt) |
| static | isValidBareString (string $string) |
| static | stringToSNBT (string $string) |
Protected Member Functions inherited from Phpcraft\NBT\NBT | |
| _write (Connection $con) | |
Static Protected Member Functions inherited from Phpcraft\NBT\NBT | |
| static | parseSNBTArray (string $snbt, bool $list) |
| static | indentString (string $string) |
| Phpcraft\NBT\CompoundTag::__construct | ( | string | $name, |
| array | $children = [] |
||
| ) |
| string | $name | The name of this tag. |
| array<NBT> | $children The child tags of the compound. |
| Phpcraft\NBT\CompoundTag::__toString | ( | ) |
Reimplemented from Phpcraft\NBT\NBT.
| Phpcraft\NBT\CompoundTag::addChild | ( | NBT | $tag | ) |
Adds a child to the compound or replaces an existing one by the same name.
| NBT | $tag |
| Phpcraft\NBT\CompoundTag::copy | ( | ) |
Reimplemented from Phpcraft\NBT\NBT.
| Phpcraft\NBT\CompoundTag::count | ( | ) |
| Phpcraft\NBT\CompoundTag::current | ( | ) |
| Phpcraft\NBT\CompoundTag::getChild | ( | string | $name | ) |
| Phpcraft\NBT\CompoundTag::hasChild | ( | string | $name | ) |
Returns true if the compound has a child with the given name.
| string | $name |
| Phpcraft\NBT\CompoundTag::key | ( | ) |
| Phpcraft\NBT\CompoundTag::next | ( | ) |
| Phpcraft\NBT\CompoundTag::offsetExists | ( | $offset | ) |
| Phpcraft\NBT\CompoundTag::offsetGet | ( | $offset | ) |
| Phpcraft\NBT\CompoundTag::offsetSet | ( | $offset, | |
| $value | |||
| ) |
| Phpcraft\NBT\CompoundTag::offsetUnset | ( | $offset | ) |
| Phpcraft\NBT\CompoundTag::rewind | ( | ) |
| Phpcraft\NBT\CompoundTag::toSNBT | ( | bool | $fancy = false, |
| bool | $inList = false |
||
| ) |
Returns the NBT tag in SNBT (stringified NBT) format, as used in commands.
| bool | $fancy | |
| boolean | $inList | Ignore this parameter. |
Reimplemented from Phpcraft\NBT\NBT.
| Phpcraft\NBT\CompoundTag::valid | ( | ) |
| Phpcraft\NBT\CompoundTag::write | ( | Connection | $con, |
| bool | $inList = false |
||
| ) |
Adds the NBT tag to the write buffer of the connection.
| Connection | $con | |
| boolean | $inList | Ignore this parameter. |
Reimplemented from Phpcraft\NBT\NBT.
| SplObjectStorage Phpcraft\NBT\CompoundTag::$children |
The child tags of the compound.
| const Phpcraft\NBT\CompoundTag::ORD = 10 |
1.8.17