PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\scheduler\Task Class Reference
+ Inheritance diagram for pocketmine\scheduler\Task:
+ Collaboration diagram for pocketmine\scheduler\Task:

Public Member Functions

 getHandler ()
 
 getTaskId ()
 
 setHandler ($taskHandler)
 
 onRun ($currentTick)
 
 onCancel ()
 

Detailed Description

Definition at line 24 of file Task.php.

Member Function Documentation

pocketmine\scheduler\Task::getHandler ( )
final
Returns
TaskHandler

Definition at line 32 of file Task.php.

pocketmine\scheduler\Task::getTaskId ( )
final
Returns
int

Definition at line 39 of file Task.php.

pocketmine\scheduler\Task::onCancel ( )

Actions to execute if the Task is cancelled

Definition at line 68 of file Task.php.

pocketmine\scheduler\Task::onRun (   $currentTick)
abstract

Actions to execute when run

Parameters
$currentTick
Returns
void
pocketmine\scheduler\Task::setHandler (   $taskHandler)
final
Parameters
TaskHandler$taskHandler

Definition at line 50 of file Task.php.


The documentation for this class was generated from the following file: