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

Public Member Functions

 __construct (Server $server, ClientConnection $client, ?Point3D $prev_pos=null, ?int $prev_chunk_x=null, ?int $prev_chunk_z=null)
 
- Public Member Functions inherited from Phpcraft\Event\ServerMovementEvent
 __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_chunk_x
 
 $prev_chunk_z
 
- Public Attributes inherited from Phpcraft\Event\ServerMovementEvent
 $prev_pos
 
- Public Attributes inherited from Phpcraft\Event\ServerClientEvent
 $client
 
- Public Attributes inherited from Phpcraft\Event\ServerEvent
 $server
 

Detailed Description

Fired when a client crosses a chunk border.

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerChunkBorderEvent::__construct ( Server  $server,
ClientConnection  $client,
?Point3D  $prev_pos = null,
?int  $prev_chunk_x = null,
?int  $prev_chunk_z = null 
)

Member Data Documentation

◆ $prev_chunk_x

int null Phpcraft\Event\ServerChunkBorderEvent::$prev_chunk_x

The client's chunk x position before this event.

◆ $prev_chunk_z

int null Phpcraft\Event\ServerChunkBorderEvent::$prev_chunk_z

The client's chunk z position before this event.