PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\event\HandlerList Class Reference
+ Collaboration diagram for pocketmine\event\HandlerList:

Public Member Functions

 register (RegisteredListener $listener)
 
 registerAll (array $listeners)
 
 unregister ($object)
 
 bake ()
 
 getRegisteredListeners ($plugin=null)
 

Static Public Member Functions

static bakeAll ()
 
static unregisterAll ($object=null)
 
static getHandlerLists ()
 

Detailed Description

Definition at line 27 of file HandlerList.php.

Member Function Documentation

static pocketmine\event\HandlerList::getHandlerLists ( )
static
Returns
HandlerList[]

Definition at line 175 of file HandlerList.php.

pocketmine\event\HandlerList::getRegisteredListeners (   $plugin = null)
Parameters
null | Plugin$plugin
Returns
RegisteredListener[]

Definition at line 153 of file HandlerList.php.

pocketmine\event\HandlerList::register ( RegisteredListener  $listener)
Parameters
RegisteredListener$listener
Exceptions
\Exception

Definition at line 88 of file HandlerList.php.

References pocketmine\event\EventPriority\LOWEST, and pocketmine\event\EventPriority\MONITOR.

pocketmine\event\HandlerList::registerAll ( array  $listeners)
Parameters
RegisteredListener[]$listeners

Definition at line 102 of file HandlerList.php.

pocketmine\event\HandlerList::unregister (   $object)
Parameters
RegisteredListener | Listener | Plugin$object

Definition at line 111 of file HandlerList.php.

static pocketmine\event\HandlerList::unregisterAll (   $object = null)
static

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

Parameters
Plugin | Listener | null$object

Definition at line 56 of file HandlerList.php.

Referenced by pocketmine\plugin\PluginManager\disablePlugin().

+ Here is the caller graph for this function:


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