PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
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

@template TTask of Task

Definition at line 32 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 )

@phpstan-param TTask $task

Definition at line 45 of file TaskHandler.php.

References pocketmine\scheduler\Task\getHandler().

+ Here is the call graph for this function:

Member Function Documentation

◆ cancel()

pocketmine\scheduler\TaskHandler::cancel ( )

Definition at line 98 of file TaskHandler.php.

◆ getDelay()

pocketmine\scheduler\TaskHandler::getDelay ( )

Definition at line 82 of file TaskHandler.php.

◆ getNextRun()

pocketmine\scheduler\TaskHandler::getNextRun ( )

Definition at line 64 of file TaskHandler.php.

◆ getOwnerName()

pocketmine\scheduler\TaskHandler::getOwnerName ( )

Definition at line 134 of file TaskHandler.php.

◆ getPeriod()

pocketmine\scheduler\TaskHandler::getPeriod ( )

Definition at line 94 of file TaskHandler.php.

◆ getTask()

pocketmine\scheduler\TaskHandler::getTask ( )

@phpstan-return TTask

Definition at line 78 of file TaskHandler.php.

◆ getTaskName()

pocketmine\scheduler\TaskHandler::getTaskName ( )

Definition at line 130 of file TaskHandler.php.

◆ isCancelled()

pocketmine\scheduler\TaskHandler::isCancelled ( )

Definition at line 60 of file TaskHandler.php.

◆ isDelayed()

pocketmine\scheduler\TaskHandler::isDelayed ( )

Definition at line 86 of file TaskHandler.php.

◆ isRepeating()

pocketmine\scheduler\TaskHandler::isRepeating ( )

Definition at line 90 of file TaskHandler.php.

◆ remove()

pocketmine\scheduler\TaskHandler::remove ( )

Definition at line 111 of file TaskHandler.php.

◆ run()

pocketmine\scheduler\TaskHandler::run ( )

Definition at line 119 of file TaskHandler.php.

◆ setNextRun()

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

Definition at line 71 of file TaskHandler.php.

Member Data Documentation

◆ $cancelled

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

Definition at line 35 of file TaskHandler.php.

◆ $nextRun

int pocketmine\scheduler\TaskHandler::$nextRun
protected

Definition at line 33 of file TaskHandler.php.


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