|
Phpcraft
|


Public Member Functions | |
| __construct (ClientConnection $client, ?ServerConnection $server, ServerboundPacketId $packetId) | |
Public Member Functions inherited from Phpcraft\Event\ProxyPacketEvent | |
| __construct (ClientConnection $client, ?ServerConnection $server, PacketId $packetId) | |
Public Member Functions inherited from Phpcraft\Event\ProxyEvent | |
| __construct (?ClientConnection $client, ?ServerConnection $server=null) | |
Additional Inherited Members | |
Public Attributes inherited from Phpcraft\Event\ProxyPacketEvent | |
| $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 | |
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.
| Phpcraft\Event\ProxyServerPacketEvent::__construct | ( | ClientConnection | $client, |
| ?ServerConnection | $server, | ||
| ServerboundPacketId | $packetId | ||
| ) |
| ClientConnection | $client | The client connection. |
| ServerConnection | null | $server | The server connection. |
| ServerboundPacketId | $packetId | The ID of the packet the client has sent. |
1.8.16