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

Public Member Functions

 __construct (ProxyServer $server, ClientConnection $client, ServerboundPacketId $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 one of its clients sends a packet to their server. Cancellable. Cancelling the event prevents the recipient from receiving the packet.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ProxyServerPacketEvent::__construct ( ProxyServer  $server,
ClientConnection  $client,
ServerboundPacketId  $packetId 
)

Member Data Documentation

◆ $packetId

ServerboundPacketId Phpcraft\Event\ProxyServerPacketEvent::$packetId