Overview

Namespaces

  • aliuly
    • common
      • selectors
    • loader
  • xPaw

Classes

  • ArmorItems
  • BasicCli
  • BasicHelp
  • BasicPlugin
  • ChatSession
  • Cmd
  • CmdSelector
  • ExpandVars
  • FastTransfer
  • FileUtils
  • FreezeSession
  • GetMotd
  • GetMotdAsyncTask
  • InvisibleSession
  • InvUtils
  • ItemName
  • mc
  • mc2
  • MoneyAPI
  • MPMU
  • Npc
  • PermUtils
  • PluginAsyncTask
  • PluginCallbackTask
  • PMScript
  • QueryAsyncTask
  • Rcon
  • RconTask
  • Session
  • ShieldSession
  • ShoppingCart
  • SignUtils
  • SkinUtils
  • SpySession
  • SubCommandMap
  • TPUtils
  • Overview
  • Namespace
  • Class

Class PluginCallbackTask

Simple plugin callbacks.

Allows the creation of simple callbacks with extra data The last parameter in the callback will be the "currentTicks"

Simply put, just do: new PluginCallbackTask($plugin,[$obj,"method"],[$args])

Pass it to the scheduler and off you go...

pocketmine\scheduler\PluginTask
Extended by aliuly\common\PluginCallbackTask
Namespace: aliuly\common
Located at aliuly/common/PluginCallbackTask.php
Methods summary
public
# __construct( pocketmine\plugin\Plugin $owner, callable $callable, array $args = [] )

Parameters

$owner
$callable
$args
public callable
# getCallable( )

Returns

callable
public
# onRun( $currentTicks )
Properties summary
protected callable $callable
#
protected array $args
#
API documentation generated by ApiGen