|
Phpcraft
|


Public Member Functions | |
| __construct (Server $server, ClientConnection $client, ?Point3D $prev_pos=null) | |
Public Member Functions inherited from Phpcraft\Event\ServerClientEvent | |
| __construct (Server $server, ClientConnection $client) | |
Public Member Functions inherited from Phpcraft\Event\ServerEvent | |
| __construct (Server $server) | |
Public Attributes | |
| $prev_pos | |
Public Attributes inherited from Phpcraft\Event\ServerClientEvent | |
| $client | |
Public Attributes inherited from Phpcraft\Event\ServerEvent | |
| $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 | |
Fired when a client moves. Canceling puts the client back to where they were before this event.
| Phpcraft\Event\ServerMovementEvent::__construct | ( | Server | $server, |
| ClientConnection | $client, | ||
| ?Point3D | $prev_pos = null |
||
| ) |
| Server | $server | |
| ClientConnection | $client | |
| Point3D | null | $prev_pos |
| Point3D null Phpcraft\Event\ServerMovementEvent::$prev_pos |
The client's position before this event.
1.8.16