Phpcraft
|
Public Member Functions | |
__construct (string $name, int $value=0) | |
write (Connection $con, bool $inList=false) | |
__toString () | |
copy () | |
toSNBT (bool $fancy=false, bool $inList=false) | |
Public Attributes | |
const | ORD = 2 |
$value | |
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\ShortTag::__construct | ( | string | $name, |
int | $value = 0 |
||
) |
string | $name | The name of this tag. |
int | $value | The value of this tag. |
Phpcraft\NBT\ShortTag::__toString | ( | ) |
Reimplemented from Phpcraft\NBT\NBT.
Phpcraft\NBT\ShortTag::copy | ( | ) |
Reimplemented from Phpcraft\NBT\NBT.
Phpcraft\NBT\ShortTag::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\ShortTag::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.
int Phpcraft\NBT\ShortTag::$value |
The value of this tag.
const Phpcraft\NBT\ShortTag::ORD = 2 |