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

Public Member Functions

 __construct (Server $server, ClientConnection $client, Living $prev_metadata)
 
- 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_metadata
 
- Public Attributes inherited from Phpcraft\Event\ServerClientEvent
 $client
 
- Public Attributes inherited from Phpcraft\Event\ServerEvent
 $server
 

Detailed Description

Fired by the server when a client changes their metadata (starting or stopping to crouch or sprint.)

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ServerClientMetadataEvent::__construct ( Server  $server,
ClientConnection  $client,
Living  $prev_metadata 
)

Member Data Documentation

◆ $prev_metadata

Living Phpcraft\Event\ServerClientMetadataEvent::$prev_metadata

The client's metadata prior to this event.