Skip to content

HandlerList ​

class · pocketmine\event\HandlerList · source

Methods ​

__construct() ​

php
public function __construct(string $class, ?\pocketmine\event\HandlerList $parentList, \pocketmine\event\RegisteredListenerCache $handlerCache = new \pocketmine\event\RegisteredListenerCache())

TODO: parentList should not participate in the inference of TEvent, but PHPStan doesn't currently have NoInfer features

clear() ​

php
public function clear() : void

getListenerList() ​

php
public function getListenerList() : array

getListenersByPriority() ​

php
public function getListenersByPriority(int $priority) : array

getParent() ​

php
public function getParent() : ?\pocketmine\event\HandlerList

register() ​

php
public function register(\pocketmine\event\RegisteredListener $listener) : void

registerAll() ​

php
public function registerAll(array $listeners) : void

unregister() ​

php
public function unregister(\pocketmine\event\RegisteredListener|\pocketmine\plugin\Plugin|\pocketmine\event\Listener $object) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.