PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\event\Event Class Reference
+ Inheritance diagram for pocketmine\event\Event:
+ Collaboration diagram for pocketmine\event\Event:

Public Member Functions

 call ()
 
 getEventName ()
 

Static Public Member Functions

static hasHandlers ()
 

Protected Attributes

string $eventName = null
 

Detailed Description

Definition at line 33 of file Event.php.

Member Function Documentation

◆ call()

pocketmine\event\Event::call ( )

Calls event handlers registered for this event.

Exceptions

RuntimeException if event call recursion reaches the max depth limit

Definition at line 49 of file Event.php.

◆ getEventName()

pocketmine\event\Event::getEventName ( )
final

Definition at line 40 of file Event.php.

◆ hasHandlers()

static pocketmine\event\Event::hasHandlers ( )
static

Returns whether the current class context has any registered global handlers. This can be used in hot code paths to avoid unnecessary event object creation.

Usage: SomeEventClass::hasHandlers()

Definition at line 77 of file Event.php.

Member Data Documentation

◆ $eventName

string pocketmine\event\Event::$eventName = null
protected

Definition at line 38 of file Event.php.


The documentation for this class was generated from the following file: