Skip to content

Task ​

abstract class · pocketmine\scheduler\Task · source

Methods ​

getHandler() ​

php
final public function getHandler() : ?\pocketmine\scheduler\TaskHandler

getName() ​

php
public function getName() : string

onCancel() ​

php
public function onCancel() : void

Actions to execute if the Task is cancelled

onRun() ​

php
abstract public function onRun() : void

Actions to execute when run

setHandler() ​

php
final public function setHandler(?\pocketmine\scheduler\TaskHandler $taskHandler) : void

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