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

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
 

Detailed Description

Fired when a client moves. Cancellable. Cancelling puts the client back to where they were before this event.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerMovementEvent::__construct ( Server  $server,
ClientConnection  $client,
?Point3D  $prev_pos = null 
)

Member Data Documentation

◆ $prev_pos

Point3D null Phpcraft\Event\ServerMovementEvent::$prev_pos

The client's position before this event.