PocketMine-MP 5.37.4 git-dbb0a3db4df7e1ea8e62dc67aa0a6030f2ac20e4
Loading...
Searching...
No Matches
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[] @phpstan-return array<class-string<Event>, HandlerList<*>>

Definition at line 149 of file HandlerListManager.php.

◆ getHandlersFor()

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

@phpstan-template TEvent of Event @phpstan-param class-string<TEvent> $event

Returns
RegisteredListener[] @phpstan-return list<RegisteredListener<TEvent>>

Definition at line 138 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-template TEvent of Event

@phpstan-param class-string<TEvent> $event @phpstan-return HandlerList<TEvent>

Exceptions

ReflectionException

Exceptions

InvalidArgumentException

Definition at line 102 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 @phpstan-param RegisteredListener<*>|Plugin|Listener|null $object

Definition at line 53 of file HandlerListManager.php.


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