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

Public Member Functions

 __construct (ClientConnection $client, ?ServerConnection $server, PacketId $packetId)
 
- Public Member Functions inherited from Phpcraft\Event\ProxyEvent
 __construct (?ClientConnection $client, ?ServerConnection $server=null)
 

Public Attributes

 $packetId
 
- Public Attributes inherited from Phpcraft\Event\ProxyEvent
 $client
 
 $server
 
- Public Attributes inherited from Phpcraft\Event\Event
const PRIORITY_HIGHEST = 2
 
const PRIORITY_HIGH = 1
 
const PRIORITY_NORMAL = 0
 
const PRIORITY_LOW = -1
 
const PRIORITY_LOWEST = -2
 
 $cancelled = false
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ProxyPacketEvent::__construct ( ClientConnection  $client,
?ServerConnection  $server,
PacketId  $packetId 
)
Parameters
ClientConnection$clientThe client connection.
ServerConnection | null$serverThe server connection.
PacketId$packetIdThe ID of the packet being sent.

Member Data Documentation

◆ $packetId

PacketId Phpcraft\Event\ProxyPacketEvent::$packetId