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

Public Member Functions

 __construct (private UpdateChecker $updater)
 
 call ()
 
 getEventName ()
 
 getUpdater ()
 

Static Public Member Functions

static hasHandlers ()
 

Protected Attributes

string $eventName = null
 

Detailed Description

Called when the update checker receives notification of an available PocketMine-MP update. Plugins may use this event to perform actions when an update notification is received.

Definition at line 32 of file UpdateNotifyEvent.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\event\server\UpdateNotifyEvent::__construct ( private UpdateChecker $updater)

Definition at line 33 of file UpdateNotifyEvent.php.

Member Function Documentation

◆ call()

pocketmine\event\Event::call ( )
inherited

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 ( )
finalinherited

Definition at line 40 of file Event.php.

◆ getUpdater()

pocketmine\event\server\UpdateNotifyEvent::getUpdater ( )

Definition at line 35 of file UpdateNotifyEvent.php.

◆ hasHandlers()

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

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
protectedinherited

Definition at line 38 of file Event.php.


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