PocketMine
TaskHandler Class Reference

Public Member Functions

 __construct ($timingName, Task $task, $taskId, $delay=-1, $period=-1)
 
 isCancelled ()
 
 getNextRun ()
 
 setNextRun ($ticks)
 
 getTaskId ()
 
 getTask ()
 
 getDelay ()
 
 isDelayed ()
 
 isRepeating ()
 
 getPeriod ()
 
 cancel ()
 
 remove ()
 
 run ($currentTick)
 
 getTaskName ()
 

Data Fields

 $timings
 
 $timingName = null
 

Protected Attributes

 $task
 
 $taskId
 
 $delay
 
 $period
 
 $nextRun
 
 $cancelled = false
 

Constructor & Destructor Documentation

__construct (   $timingName,
Task  $task,
  $taskId,
  $delay = -1,
  $period = -1 
)
Parameters
string$timingName
Task$task
int$taskId
int$delay
int$period

Member Function Documentation

cancel ( )

WARNING: Do not use this, it's only for internal use. Changes to this function won't be recorded on the version.

getDelay ( )
Returns
int
getNextRun ( )
Returns
int
getPeriod ( )
Returns
int
getTask ( )
Returns
Task
getTaskId ( )
Returns
int
getTaskName ( )
Returns
string
isCancelled ( )
Returns
bool
isDelayed ( )
Returns
bool
isRepeating ( )
Returns
bool
run (   $currentTick)
Parameters
int$currentTick
setNextRun (   $ticks)
Parameters
int$ticks

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