|
PocketMine-MP 5.37.4 git-dbb0a3db4df7e1ea8e62dc67aa0a6030f2ac20e4
|
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 () |
Definition at line 29 of file HandlerListManager.php.
| pocketmine\event\HandlerListManager::getAll | ( | ) |
Definition at line 149 of file HandlerListManager.php.
| pocketmine\event\HandlerListManager::getHandlersFor | ( | string | $event | ) |
@phpstan-template TEvent of Event @phpstan-param class-string<TEvent> $event
Definition at line 138 of file HandlerListManager.php.
| 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>
ReflectionException
InvalidArgumentException
Definition at line 102 of file HandlerListManager.php.
|
static |
Definition at line 33 of file HandlerListManager.php.
| 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.