Phpcraft
|
Public Member Functions | |
__construct (string $channel="", string $data="") | |
Public Member Functions inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket | |
send (Connection $con) | |
__toString () | |
Static Public Member Functions | |
static | read (Connection $con) |
Additional Inherited Members | |
Public Attributes inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket | |
const | CHANNEL_REGISTER = "minecraft:register" |
const | CHANNEL_UNREGISTER = "minecraft:unregister" |
const | CHANNEL_BRAND = "minecraft:brand" |
const | CHANNEL_BUNGEECORD = "bungeecord:main" |
$channel | |
$data | |
Protected Member Functions inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket | |
__construct (string $packet_name, string $channel="", string $data="") | |
send_ (Connection $con) | |
Static Protected Member Functions inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket | |
static | readChannel (Connection $con) |
Phpcraft\Packet\PluginMessage\ClientboundPluginMessagePacket::__construct | ( | string | $channel = "" , |
string | $data = "" |
||
) |
string | $channel | The name of the plugin message's channel. |
string | $data | The data of the plugin message. |
Reimplemented in Phpcraft\Packet\PluginMessage\ClientboundStringPluginMessagePacket.
|
static |
Initialises the packet class by reading its payload from the given Connection.
Connection | $con |
IOException |
Reimplemented from Phpcraft\Packet\Packet.