Phpcraft
|
Public Member Functions | |
write (Connection $con, bool $inList=false) | |
copy () | |
__toString () | |
toSNBT (bool $fancy=false, bool $inList=false) | |
Static Public Member Functions | |
static | fromString (string $nbt) |
static | fromSNBT (string $snbt, bool $inList=false) |
static | stringFromSNBT (string $snbt) |
static | isValidBareString (string $string) |
static | stringToSNBT (string $string) |
Public Attributes | |
const | ORD = null |
$name | |
Protected Member Functions | |
_write (Connection $con) | |
Static Protected Member Functions | |
static | parseSNBTArray (string $snbt, bool $list) |
static | indentString (string $string) |
The base class for NBT (named binary tag).
|
abstract |
Reimplemented in Phpcraft\NBT\CompoundTag, Phpcraft\NBT\ListTag, Phpcraft\NBT\IntTag, Phpcraft\NBT\ByteTag, Phpcraft\NBT\ByteArrayTag, Phpcraft\NBT\StringTag, Phpcraft\NBT\DoubleTag, Phpcraft\NBT\LongTag, Phpcraft\NBT\IntArrayTag, Phpcraft\NBT\FloatTag, Phpcraft\NBT\ShortTag, Phpcraft\NBT\LongArrayTag, and Phpcraft\NBT\EndTag.
|
protected |
|
abstract |
Reimplemented in Phpcraft\NBT\CompoundTag, Phpcraft\NBT\LongTag, Phpcraft\NBT\ListTag, Phpcraft\NBT\LongArrayTag, Phpcraft\NBT\FloatTag, Phpcraft\NBT\IntTag, Phpcraft\NBT\ShortTag, Phpcraft\NBT\ByteTag, Phpcraft\NBT\ByteArrayTag, Phpcraft\NBT\StringTag, Phpcraft\NBT\DoubleTag, Phpcraft\NBT\IntArrayTag, and Phpcraft\NBT\EndTag.
|
static |
|
static |
|
staticprotected |
string | $string |
|
static |
string | $string |
|
staticprotected |
string | $snbt | |
bool | $list |
|
static |
string | $snbt |
|
static |
string | $string |
|
abstract |
Returns the NBT data in SNBT (stringified NBT) format, as used in commands.
bool | $fancy | |
boolean | $inList | Ignore this parameter. |
Reimplemented in Phpcraft\NBT\CompoundTag, Phpcraft\NBT\ListTag, Phpcraft\NBT\IntTag, Phpcraft\NBT\LongTag, Phpcraft\NBT\ByteArrayTag, Phpcraft\NBT\IntArrayTag, Phpcraft\NBT\LongArrayTag, Phpcraft\NBT\ByteTag, Phpcraft\NBT\FloatTag, Phpcraft\NBT\ShortTag, Phpcraft\NBT\StringTag, Phpcraft\NBT\DoubleTag, and Phpcraft\NBT\EndTag.
|
abstract |
Adds the NBT tag to the write buffer of the connection.
Connection | $con | |
boolean | $inList | Ignore this parameter. |
Reimplemented in Phpcraft\NBT\CompoundTag, Phpcraft\NBT\IntTag, Phpcraft\NBT\LongTag, Phpcraft\NBT\ListTag, Phpcraft\NBT\ByteTag, Phpcraft\NBT\DoubleTag, Phpcraft\NBT\FloatTag, Phpcraft\NBT\ShortTag, Phpcraft\NBT\StringTag, Phpcraft\NBT\IntArrayTag, Phpcraft\NBT\LongArrayTag, Phpcraft\NBT\ByteArrayTag, and Phpcraft\NBT\EndTag.
string Phpcraft\NBT\NBT::$name |
The name of this tag.
const Phpcraft\NBT\NBT::ORD = null |