Phpcraft
|
Public Member Functions | |
read (Connection $con) | |
write (Connection $con) | |
__toString () | |
getStringAttributes () | |
Static Public Member Functions | |
static | writeByte (Connection $con, int $index, int $value) |
static | writeFloat (Connection $con, int $index, float $value) |
static | writeOptChat (Connection $con, int $index, ?ChatComponent $value) |
static | writeString (Connection $con, int $index, string $value) |
static | writeBoolean (Connection $con, int $index, bool $value) |
static | writeInt (Connection $con, int $index, $value) |
static | finish (Connection $con) |
Protected Member Functions | |
read_ (Connection $con, int $index) | |
Entity metadata. All values are "null" by default, meaning EntityMetadata::write won't write it.
Phpcraft\Entity\Metadata::__toString | ( | ) |
|
static |
Connection | $con |
|
abstract |
Reimplemented in Phpcraft\Entity\Base, Phpcraft\Entity\Guardian, Phpcraft\Entity\Creeper, and Phpcraft\Entity\Living.
Phpcraft\Entity\Metadata::read | ( | Connection | $con | ) |
Reads metadata values from the Connection.
Connection | $con |
IOException |
|
abstractprotected |
Connection | $con | |
int | $index |
Reimplemented in Phpcraft\Entity\Base, Phpcraft\Entity\Guardian, Phpcraft\Entity\Creeper, and Phpcraft\Entity\Living.
|
abstract |
Writes non-null metadata values to the Connection's write buffer.
Connection | $con |
Reimplemented in Phpcraft\Entity\Base, Phpcraft\Entity\Guardian, Phpcraft\Entity\Creeper, and Phpcraft\Entity\Living.
|
static |
Connection | $con | |
int | $index | |
bool | $value |
|
static |
Connection | $con | |
int | $index | |
int | $value |
|
static |
Connection | $con | |
int | $index | |
float | $value |
|
static |
Connection | $con | |
int | $index | |
GMP | string | int | $value |
|
static |
Connection | $con | |
int | $index | |
ChatComponent | null | $value |
LogicException |
|
static |
Connection | $con | |
int | $index | |
string | $value |