mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
TaskHandler: mark some public methods as @internal (#5310)
closes #5309
This commit is contained in:
parent
2db3498891
commit
dec188d4ad
@ -69,6 +69,9 @@ class TaskHandler{
|
|||||||
return $this->nextRun;
|
return $this->nextRun;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
public function setNextRun(int $ticks) : void{
|
public function setNextRun(int $ticks) : void{
|
||||||
$this->nextRun = $ticks;
|
$this->nextRun = $ticks;
|
||||||
}
|
}
|
||||||
@ -103,11 +106,17 @@ class TaskHandler{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
public function remove() : void{
|
public function remove() : void{
|
||||||
$this->cancelled = true;
|
$this->cancelled = true;
|
||||||
$this->task->setHandler(null);
|
$this->task->setHandler(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
public function run() : void{
|
public function run() : void{
|
||||||
$this->timings->startTiming();
|
$this->timings->startTiming();
|
||||||
try{
|
try{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user