PHP Class pocketmine\scheduler\Task

Afficher le fichier Open project: ClearSkyTeam/ClearSky Class Usage Examples

Méthodes publiques

Méthode 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 méthode

final public getHandler ( ) : TaskHandler
Résultat TaskHandler

getTaskId() final public méthode

final public getTaskId ( ) : integer
Résultat integer

onCancel() public méthode

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

onRun() abstract public méthode

Actions to execute when run
abstract public onRun ( $currentTick ) : void
$currentTick
Résultat void

setHandler() final public méthode

final public setHandler ( TaskHandler $taskHandler )
$taskHandler TaskHandler