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

Public Member Functions

 __construct (ProxyServer $server, bool $lagging)
 
- Public Member Functions inherited from Phpcraft\Event\ProxyEvent
 __construct (ProxyServer $server)
 

Public Attributes

 $lagging
 
- Public Attributes inherited from Phpcraft\Event\ProxyEvent
 $server
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\Event\ProxyTickEvent::__construct ( ProxyServer  $server,
bool  $lagging 
)

Member Data Documentation

◆ $lagging

bool Phpcraft\Event\ProxyTickEvent::$lagging

True if this tick event should've been fired much earlier but wasn't because the proxy server was busy. If your task is complicated and/or doesn't need to be executed every tick, try not doing it if this is true.