PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\event\HandlerListManager Class Reference
+ Collaboration diagram for pocketmine\event\HandlerListManager:

Public Member Functions

 getAll ()
 
 getHandlersFor (string $event)
 
 getListFor (string $event)
 
 unregisterAll (RegisteredListener|Plugin|Listener|null $object=null)
 

Static Public Member Functions

static global ()
 

Detailed Description

Definition at line 29 of file HandlerListManager.php.

Member Function Documentation

◆ getAll()

pocketmine\event\HandlerListManager::getAll ( )
Returns
HandlerList[]

Definition at line 128 of file HandlerListManager.php.

◆ getHandlersFor()

pocketmine\event\HandlerListManager::getHandlersFor ( string  $event)

@phpstan-param class-string<covariant Event> $event

Returns
RegisteredListener[]

Definition at line 119 of file HandlerListManager.php.

◆ getListFor()

pocketmine\event\HandlerListManager::getListFor ( string  $event)

Returns the HandlerList for listeners that explicitly handle this event.

Calling this method also lazily initializes the $classMap inheritance tree of handler lists.

@phpstan-param class-string<covariant Event> $event

Exceptions

ReflectionException

Exceptions

InvalidArgumentException

Definition at line 94 of file HandlerListManager.php.

◆ global()

static pocketmine\event\HandlerListManager::global ( )
static

Definition at line 33 of file HandlerListManager.php.

◆ unregisterAll()

pocketmine\event\HandlerListManager::unregisterAll ( RegisteredListener|Plugin|Listener|null  $object = null)

Unregisters all the listeners If a Plugin or Listener is passed, all the listeners with that object will be removed

Definition at line 49 of file HandlerListManager.php.


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