TaskScheduler
Properties
$currentTick protected
php
protected int $currentTick$queue protected
php
protected \pocketmine\utils\ReversePriorityQueue $queue$tasks protected
php
protected \pocketmine\utils\ObjectSet $tasksMethods
__construct()
php
public function __construct(?string $owner = null, ?\pocketmine\plugin\Plugin $ownerPlugin = null)cancelAllTasks()
php
public function cancelAllTasks() : voidisQueued()
php
public function isQueued(\pocketmine\scheduler\TaskHandler $task) : boolmainThreadHeartbeat()
php
public function mainThreadHeartbeat(int $currentTick) : voidscheduleDelayedRepeatingTask()
php
public function scheduleDelayedRepeatingTask(\pocketmine\scheduler\Task $task, int $delay, int $period) : \pocketmine\scheduler\TaskHandlerscheduleDelayedTask()
php
public function scheduleDelayedTask(\pocketmine\scheduler\Task $task, int $delay) : \pocketmine\scheduler\TaskHandlerscheduleRepeatingTask()
php
public function scheduleRepeatingTask(\pocketmine\scheduler\Task $task, int $period) : \pocketmine\scheduler\TaskHandlerscheduleTask()
php
public function scheduleTask(\pocketmine\scheduler\Task $task) : \pocketmine\scheduler\TaskHandlersetEnabled()
php
public function setEnabled(bool $enabled) : voidshutdown()
php
public function shutdown() : void