|
PocketMine
|
Public Member Functions | |
| __construct (callable $callable, array $args=[]) | |
| getCallable () | |
| onRun ($currentTicks) | |
Public Member Functions inherited from Task | |
| getHandler () | |
| getTaskId () | |
| setHandler ($taskHandler) | |
| onRun ($currentTick) | |
| onCancel () | |
Protected Attributes | |
| $callable | |
| $args | |
Allows the creation of simple callbacks with extra data The last parameter in the callback will be this object
If you want to do a task in a Plugin, consider extending PluginTask to your needs
| __construct | ( | callable | $callable, |
| array | $args = [] |
||
| ) |
| callable | $callable | |
| array | $args |
| getCallable | ( | ) |