Phpcraft
Public Member Functions | Public Attributes | List of all members
Phpcraft\Event\ProxyClientPacketEvent Class Reference
Inheritance diagram for Phpcraft\Event\ProxyClientPacketEvent:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\Event\ProxyClientPacketEvent:
Collaboration graph
[legend]

Public Member Functions

 __construct (ProxyServer $server, ClientConnection $client, ClientboundPacketId $packetId)
 
- Public Member Functions inherited from Phpcraft\Event\ProxyPacketEvent
 __construct (ProxyServer $server, ClientConnection $client, PacketId $packetId)
 
- Public Member Functions inherited from Phpcraft\Event\ProxyClientEvent
 __construct (ProxyServer $server, ClientConnection $client)
 
- Public Member Functions inherited from Phpcraft\Event\ProxyEvent
 __construct (ProxyServer $server)
 

Public Attributes

 $packetId
 
- Public Attributes inherited from Phpcraft\Event\ProxyPacketEvent
 $packetId
 
- Public Attributes inherited from Phpcraft\Event\ProxyClientEvent
 $client
 
- Public Attributes inherited from Phpcraft\Event\ProxyEvent
 $server
 

Detailed Description

The event emitted by the proxy when it receives a packet addressed to one of its clients. Cancellable. Cancelling the event prevents the recipient from receiving the packet.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ProxyClientPacketEvent::__construct ( ProxyServer  $server,
ClientConnection  $client,
ClientboundPacketId  $packetId 
)

Member Data Documentation

◆ $packetId

ClientboundPacketId Phpcraft\Event\ProxyClientPacketEvent::$packetId