PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\command\CommandReader Class Reference
+ Inheritance diagram for pocketmine\command\CommandReader:
+ Collaboration diagram for pocketmine\command\CommandReader:

Public Member Functions

 __construct (\Threaded $threaded)
 
 getLine ()
 
 run ()
 
 start ($options=PTHREADS_INHERIT_ALL)
 

Protected Attributes

 $buffer
 

Detailed Description

Definition at line 26 of file CommandReader.php.

Constructor & Destructor Documentation

pocketmine\command\CommandReader::__construct ( \Threaded  $threaded)
Parameters
\Threaded$threaded

Definition at line 35 of file CommandReader.php.

Member Function Documentation

pocketmine\command\CommandReader::getLine ( )

Reads a line from console, if available. Returns null if not available

Returns
string|null

Definition at line 58 of file CommandReader.php.


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