Skip to content

HandlerListManager ​

class · pocketmine\event\HandlerListManager · source

Methods ​

getAll() ​

php
public function getAll() : array

getHandlersFor() ​

php
public function getHandlersFor(string $event) : array

getListFor() ​

php
public function getListFor(string $event) : \pocketmine\event\HandlerList

Returns the HandlerList for listeners that explicitly handle this event.

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

global() ​

php
public static function global() : self

unregisterAll() ​

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

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

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