Skip to content

TaskHandler ​

class · pocketmine\scheduler\TaskHandler · source

Properties ​

$cancelled protected ​

php
protected bool $cancelled

$delay ​

php
public int $delay

$nextRun protected ​

php
protected int $nextRun

$period ​

php
public int $period

$task ​

php
public \pocketmine\scheduler\Task $task

Methods ​

__construct() ​

php
public function __construct(\pocketmine\scheduler\Task $task, int $delay = -1, int $period = -1, ?string $ownerName = null, ?\pocketmine\plugin\Plugin $ownerPlugin = null)

cancel() ​

php
public function cancel() : void

getDelay() ​

php
public function getDelay() : int

getNextRun() ​

php
public function getNextRun() : int

getOwnerName() ​

php
public function getOwnerName() : string

getOwnerPlugin() 5.46.0 ​

php
public function getOwnerPlugin() : ?\pocketmine\plugin\Plugin

Returns the plugin owning the scheduler this task was scheduled on, if known.

getPeriod() ​

php
public function getPeriod() : int

getTask() ​

php
public function getTask() : \pocketmine\scheduler\Task

getTaskName() ​

php
public function getTaskName() : string

isCancelled() ​

php
public function isCancelled() : bool

isDelayed() ​

php
public function isDelayed() : bool

isRepeating() ​

php
public function isRepeating() : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.