PocketMine
HandlerList Class Reference

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 ()
 

Member Function Documentation

static getHandlerLists ( )
static
Returns
HandlerList[]
getRegisteredListeners (   $plugin = null)
Parameters
null | Plugin$plugin
Returns
RegisteredListener[]
register ( RegisteredListener  $listener)
Parameters
RegisteredListener$listener
Exceptions
registerAll ( array  $listeners)
Parameters
RegisteredListener[]$listeners
unregister (   $object)
Parameters
RegisteredListener | Listener | Plugin$object
static 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

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