Phpcraft
|
Public Member Functions | |
__construct (ServerConnection $server, ClientboundPacketId $packetId) | |
Public Member Functions inherited from Phpcraft\Event\ClientEvent | |
__construct (ServerConnection $server) | |
Public Attributes | |
$packetId | |
Public Attributes inherited from Phpcraft\Event\ClientEvent | |
$server | |
The event emitted by the client when the server has sent a packet. Cancellable. Cancelling the event tells the client to ignore the packet.
Phpcraft\Event\ClientPacketEvent::__construct | ( | ServerConnection | $server, |
ClientboundPacketId | $packetId | ||
) |
ClientboundPacketId Phpcraft\Event\ClientPacketEvent::$packetId |
The ID of the packet that the server has sent.