PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (protected Task $task, protected int $delay=-1, protected int $period=-1, ?string $ownerName=null) | |
cancel () | |
getDelay () | |
getNextRun () | |
getOwnerName () | |
getPeriod () | |
getTask () | |
getTaskName () | |
isCancelled () | |
isDelayed () | |
isRepeating () | |
remove () | |
run () | |
setNextRun (int $ticks) | |
Protected Attributes | |
bool | $cancelled = false |
int | $nextRun |
@template TTask of Task
Definition at line 32 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::__construct | ( | protected Task | $task, |
protected int | $delay = -1, | ||
protected int | $period = -1, | ||
?string | $ownerName = null ) |
@phpstan-param TTask $task
Definition at line 45 of file TaskHandler.php.
References pocketmine\scheduler\Task\getHandler().
pocketmine\scheduler\TaskHandler::cancel | ( | ) |
Definition at line 98 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::getDelay | ( | ) |
Definition at line 82 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::getNextRun | ( | ) |
Definition at line 64 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::getOwnerName | ( | ) |
Definition at line 134 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::getPeriod | ( | ) |
Definition at line 94 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::getTask | ( | ) |
@phpstan-return TTask
Definition at line 78 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::getTaskName | ( | ) |
Definition at line 130 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::isCancelled | ( | ) |
Definition at line 60 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::isDelayed | ( | ) |
Definition at line 86 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::isRepeating | ( | ) |
Definition at line 90 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::remove | ( | ) |
Definition at line 111 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::run | ( | ) |
Definition at line 119 of file TaskHandler.php.
pocketmine\scheduler\TaskHandler::setNextRun | ( | int | $ticks | ) |
Definition at line 71 of file TaskHandler.php.
|
protected |
Definition at line 35 of file TaskHandler.php.
|
protected |
Definition at line 33 of file TaskHandler.php.