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

Public Member Functions

 __construct (Plugin $owner)
 
 getOwner ()
 
 getHandler ()
 
 getTaskId ()
 
 setHandler ($taskHandler)
 
 onRun ($currentTick)
 
 onCancel ()
 

Protected Attributes

 $owner
 

Detailed Description

Base class for plugin tasks. Allows the Server to delete them easily when needed

Definition at line 29 of file PluginTask.php.

Constructor & Destructor Documentation

pocketmine\scheduler\PluginTask::__construct ( Plugin  $owner)
Parameters
Plugin$owner

Definition at line 37 of file PluginTask.php.

Member Function Documentation

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

Definition at line 32 of file Task.php.

pocketmine\scheduler\PluginTask::getOwner ( )
final
Returns
Plugin

Definition at line 44 of file PluginTask.php.

Referenced by pocketmine\scheduler\ServerScheduler\cancelTasks(), and pocketmine\event\Timings\getPluginTaskTimings().

+ Here is the caller graph for this function:

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

Definition at line 39 of file Task.php.

pocketmine\scheduler\Task::onCancel ( )
inherited

Actions to execute if the Task is cancelled

Definition at line 68 of file Task.php.

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

Actions to execute when run

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

Definition at line 50 of file Task.php.


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