PHP Class pocketmine\scheduler\CallbackTask

If you want to do a task in a Plugin, consider extending PluginTask to your needs
Deprecation: Do NOT use this anymore, it was deprecated a long time ago at PocketMine and will be removed at some stage in the future.
Inheritance: extends Task
Datei anzeigen Open project: iTXTech/Genisys

Protected Properties

Property Type Description
$args array
$callable callable

Public Methods

Method Description
__construct ( callable $callable, array $args = [] )
getCallable ( ) : callable
onRun ( $currentTicks )

Method Details

__construct() public method

public __construct ( callable $callable, array $args = [] )
$callable callable
$args array

getCallable() public method

public getCallable ( ) : callable
return callable

onRun() public method

public onRun ( $currentTicks )

Property Details

$args protected_oe property

protected array $args
return array

$callable protected_oe property

protected callable $callable
return callable