|
Phpcraft
|


Public Member Functions | |
| __construct (RootNode $root_node=null) | |
| addCommand (Command &$command, string $prefix="") | |
| send (Connection $con) | |
| __toString () | |
Static Public Member Functions | |
| static | read (Connection $con) |
| static | recursivelyFlatten (Node &$node) |
Public Attributes | |
| $root_node | |
| Phpcraft\Packet\DeclareCommands\DeclareCommandsPacket::__construct | ( | RootNode | $root_node = null | ) |
| Phpcraft\Packet\DeclareCommands\DeclareCommandsPacket::__toString | ( | ) |
Reimplemented from Phpcraft\Packet\Packet.
| Phpcraft\Packet\DeclareCommands\DeclareCommandsPacket::addCommand | ( | Command & | $command, |
| string | $prefix = "" |
||
| ) |
| Command | $command | |
| string | $prefix |
|
static |
Initialises the packet class by reading its payload from the given Connection.
| Connection | $con |
| IOException |
Reimplemented from Phpcraft\Packet\Packet.
|
static |
| Phpcraft\Packet\DeclareCommands\DeclareCommandsPacket::send | ( | Connection | $con | ) |
Adds the packet's ID and payload to the Connection's write buffer and sends it over the wire if the connection has a stream. Note that in some cases this will produce multiple Minecraft packets, therefore you should only use this on connections without a stream if you know what you're doing.
| Connection | $con |
| IOException |
Reimplemented from Phpcraft\Packet\Packet.
| RootNode Phpcraft\Packet\DeclareCommands\DeclareCommandsPacket::$root_node |
1.8.17