Phpcraft
|
Public Member Functions | |
send (Connection $con) | |
__toString () | |
Static Public Member Functions | |
static | read (Connection $con) |
Public Attributes | |
$locale = "en_GB" | |
$render_distance = 2 | |
$chat_mode = 0 | |
$chat_colors_enabled = true | |
$cape_enabled = true | |
$jacket_enabled = true | |
$left_sleeve_enabled = true | |
$right_sleeve_enabled = true | |
$left_pants_leg_enabled = true | |
$right_pants_leg_enabled = true | |
$hat_enabled = true | |
$left_handed = false | |
Sent by the client when joining and when settings have been changed.
Phpcraft\Packet\ClientSettingsPacket::__toString | ( | ) |
Reimplemented from Phpcraft\Packet\Packet.
|
static |
Initialises the packet class by reading its payload from the given Connection.
Connection | $con |
IOException |
Reimplemented from Phpcraft\Packet\Packet.
Phpcraft\Packet\ClientSettingsPacket::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.
bool Phpcraft\Packet\ClientSettingsPacket::$cape_enabled = true |
bool Phpcraft\Packet\ClientSettingsPacket::$chat_colors_enabled = true |
int Phpcraft\Packet\ClientSettingsPacket::$chat_mode = 0 |
Defines the messages the client accepts:
bool Phpcraft\Packet\ClientSettingsPacket::$hat_enabled = true |
bool Phpcraft\Packet\ClientSettingsPacket::$jacket_enabled = true |
bool Phpcraft\Packet\ClientSettingsPacket::$left_handed = false |
bool Phpcraft\Packet\ClientSettingsPacket::$left_pants_leg_enabled = true |
bool Phpcraft\Packet\ClientSettingsPacket::$left_sleeve_enabled = true |
string Phpcraft\Packet\ClientSettingsPacket::$locale = "en_GB" |
int Phpcraft\Packet\ClientSettingsPacket::$render_distance = 2 |
bool Phpcraft\Packet\ClientSettingsPacket::$right_pants_leg_enabled = true |
bool Phpcraft\Packet\ClientSettingsPacket::$right_sleeve_enabled = true |