PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\scheduler\TaskHandler Class Reference
+ Collaboration diagram for pocketmine\scheduler\TaskHandler:

Public Member Functions

 __construct (protected Task $task, protected int $delay=-1, protected int $period=-1, ?string $ownerName=null)
 
 cancel ()
 
 getDelay ()
 
 getNextRun ()
 
 getOwnerName ()
 
 getPeriod ()
 
 getTask ()
 
 getTaskName ()
 
 isCancelled ()
 
 isDelayed ()
 
 isRepeating ()
 
 remove ()
 
 run ()
 
 setNextRun (int $ticks)
 

Protected Attributes

bool $cancelled = false
 
int $nextRun
 

Detailed Description

Definition at line 29 of file TaskHandler.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\scheduler\TaskHandler::__construct ( protected Task $task,
protected int $delay = -1,
protected int $period = -1,
?string $ownerName = null )

Definition at line 39 of file TaskHandler.php.

Member Function Documentation

◆ cancel()

pocketmine\scheduler\TaskHandler::cancel ( )

Definition at line 89 of file TaskHandler.php.

◆ getDelay()

pocketmine\scheduler\TaskHandler::getDelay ( )

Definition at line 73 of file TaskHandler.php.

◆ getNextRun()

pocketmine\scheduler\TaskHandler::getNextRun ( )

Definition at line 58 of file TaskHandler.php.

◆ getOwnerName()

pocketmine\scheduler\TaskHandler::getOwnerName ( )

Definition at line 125 of file TaskHandler.php.

◆ getPeriod()

pocketmine\scheduler\TaskHandler::getPeriod ( )

Definition at line 85 of file TaskHandler.php.

◆ getTask()

pocketmine\scheduler\TaskHandler::getTask ( )

Definition at line 69 of file TaskHandler.php.

◆ getTaskName()

pocketmine\scheduler\TaskHandler::getTaskName ( )

Definition at line 121 of file TaskHandler.php.

◆ isCancelled()

pocketmine\scheduler\TaskHandler::isCancelled ( )

Definition at line 54 of file TaskHandler.php.

◆ isDelayed()

pocketmine\scheduler\TaskHandler::isDelayed ( )

Definition at line 77 of file TaskHandler.php.

◆ isRepeating()

pocketmine\scheduler\TaskHandler::isRepeating ( )

Definition at line 81 of file TaskHandler.php.

◆ remove()

pocketmine\scheduler\TaskHandler::remove ( )

Definition at line 102 of file TaskHandler.php.

◆ run()

pocketmine\scheduler\TaskHandler::run ( )

Definition at line 110 of file TaskHandler.php.

◆ setNextRun()

pocketmine\scheduler\TaskHandler::setNextRun ( int $ticks)

Definition at line 65 of file TaskHandler.php.

Member Data Documentation

◆ $cancelled

bool pocketmine\scheduler\TaskHandler::$cancelled = false
protected

Definition at line 32 of file TaskHandler.php.

◆ $nextRun

int pocketmine\scheduler\TaskHandler::$nextRun
protected

Definition at line 30 of file TaskHandler.php.


The documentation for this class was generated from the following file: