Phpcraft
Public Member Functions | Static Public Member Functions | List of all members
Phpcraft\Packet\PluginMessage\ServerboundPluginMessagePacket Class Reference
Inheritance diagram for Phpcraft\Packet\PluginMessage\ServerboundPluginMessagePacket:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Packet\PluginMessage\ServerboundPluginMessagePacket:
Collaboration graph
[legend]

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)
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Packet\PluginMessage\ServerboundPluginMessagePacket::__construct ( string  $channel = "",
string  $data = "" 
)
Parameters
string$channelThe name of the plugin message's channel.
string$dataThe data of the plugin message.

Reimplemented in Phpcraft\Packet\PluginMessage\ServerboundStringPluginMessagePacket.

Member Function Documentation

◆ read()

static Phpcraft\Packet\PluginMessage\ServerboundPluginMessagePacket::read ( Connection  $con)
static

Initialises the packet class by reading its payload from the given Connection.

Parameters
Connection$con
Returns
ServerboundPluginMessagePacket
Exceptions
IOException

Reimplemented from Phpcraft\Packet\Packet.