PHP Class pocketmine\scheduler\Task

Datei anzeigen Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Methods

Method Description
getHandler ( ) : TaskHandler
getTaskId ( ) : integer
onCancel ( ) Actions to execute if the Task is cancelled
onRun ( $currentTick ) : void Actions to execute when run
setHandler ( TaskHandler $taskHandler )

Method Details

getHandler() final public method

final public getHandler ( ) : TaskHandler
return TaskHandler

getTaskId() final public method

final public getTaskId ( ) : integer
return integer

onCancel() public method

Actions to execute if the Task is cancelled
public onCancel ( )

onRun() abstract public method

Actions to execute when run
abstract public onRun ( $currentTick ) : void
$currentTick
return void

setHandler() final public method

final public setHandler ( TaskHandler $taskHandler )
$taskHandler TaskHandler