◆ __construct()
__construct |
( |
|
$timingName, |
|
|
Task |
$task, |
|
|
|
$taskId, |
|
|
|
$delay = -1 , |
|
|
|
$period = -1 |
|
) |
| |
- Parameters
-
string | $timingName | |
Task | $task | |
int | $taskId | |
int | $delay | |
int | $period | |
65 $this->task->setHandler($this);
◆ cancel()
WARNING: Do not use this, it's only for internal use. Changes to this function won't be recorded on the version.
137 $this->task->onCancel();
◆ getDelay()
◆ getNextRun()
◆ getPeriod()
◆ getTask()
◆ getTaskId()
◆ getTaskName()
- Returns
- string
158 if($this->timingName !== null){
162 return get_class($this->task);
◆ isCancelled()
- Returns
- bool
72 return $this->cancelled ===
true;
◆ isDelayed()
- Returns
- bool
114 return $this->delay > 0;
◆ isRepeating()
- Returns
- bool
121 return $this->period > 0;
◆ remove()
143 $this->cancelled =
true;
144 $this->task->setHandler(null);
◆ run()
- Parameters
-
151 $this->task->onRun($currentTick);
◆ setNextRun()
- Parameters
-
86 $this->nextRun = $ticks;
◆ $cancelled
◆ $delay
◆ $nextRun
◆ $period
◆ $task
◆ $taskId
◆ $timingName
◆ $timings
The documentation for this class was generated from the following file:
- src/pocketmine/scheduler/TaskHandler.php