◆ __construct()
- Parameters
-
Listener | $listener | |
EventExecutor | $executor | |
int | $priority | |
Plugin | $plugin | |
bool | $ignoreCancelled | |
TimingsHandler | $timings | |
59 $this->listener = $listener;
60 $this->priority = $priority;
61 $this->plugin = $plugin;
62 $this->executor = $executor;
63 $this->ignoreCancelled = $ignoreCancelled;
64 $this->timings = $timings;
◆ __destruct()
101 $this->timings->remove();
◆ callEvent()
callEvent |
( |
Event |
$event | ) |
|
- Parameters
-
92 if($event instanceof Cancellable and $event->isCancelled() and $this->
isIgnoringCancelled()){
95 $this->timings->startTiming();
96 $this->executor->execute($this->listener, $event);
97 $this->timings->stopTiming();
◆ getListener()
- Returns
- Listener
71 return $this->listener;
◆ getPlugin()
◆ getPriority()
- Returns
- int
85 return $this->priority;
◆ isIgnoringCancelled()
- Returns
- bool
108 return $this->ignoreCancelled ===
true;
The documentation for this class was generated from the following file:
- src/pocketmine/plugin/RegisteredListener.php