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

Public Member Functions

 __construct (string $channel="", string $data="")
 
 __toString ()
 
- Public Member Functions inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket
 send (Connection $con)
 

Protected Member Functions

 send_ (Connection $con)
 
- Protected Member Functions inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket
 __construct (string $packet_name, string $channel="", string $data="")
 

Additional Inherited Members

- Static Public Member Functions inherited from Phpcraft\Packet\PluginMessage\ClientboundPluginMessagePacket
static read (Connection $con)
 
- 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
 
- Static Protected Member Functions inherited from Phpcraft\Packet\PluginMessage\PluginMessagePacket
static readChannel (Connection $con)
 

Detailed Description

A clientbound plugin message with only a string as data.

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from Phpcraft\Packet\PluginMessage\ClientboundPluginMessagePacket.

Member Function Documentation

◆ __toString()

Phpcraft\Packet\PluginMessage\ClientboundStringPluginMessagePacket::__toString ( )

◆ send_()

Phpcraft\Packet\PluginMessage\ClientboundStringPluginMessagePacket::send_ ( Connection  $con)
protected
Parameters
Connection$con
Returns
void

Reimplemented from Phpcraft\Packet\PluginMessage\PluginMessagePacket.