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

Public Member Functions

 __construct (GenerationThread $thread,\Logger $logger,\ClassLoader $loader)
 
 requestChunk ($levelID, $chunkX, $chunkZ)
 
 sendChunk ($levelID, FullChunk $chunk)
 
 getLogger ()
 

Public Attributes

const PACKET_ADD_NAMESPACE = 0x00
 
const PACKET_REQUEST_CHUNK = 0x01
 
const PACKET_SEND_CHUNK = 0x02
 
const PACKET_OPEN_LEVEL = 0x03
 
const PACKET_CLOSE_LEVEL = 0x04
 
const PACKET_SHUTDOWN = 0xff
 

Protected Member Functions

 openLevel ($levelID, $seed, $class, array $options)
 
 generateChunk ($levelID, $chunkX, $chunkZ)
 
 closeLevel ($levelID)
 
 enqueueChunk ($levelID, $chunkX, $chunkZ)
 
 receiveChunk ($levelID, FullChunk $chunk)
 

Protected Attributes

 $thread
 
 $logger
 
 $loader
 
 $levels = []
 
 $requestQueue = []
 
 $needsChunk = []
 
 $shutdown = false
 

Detailed Description

Definition at line 28 of file GenerationManager.php.

Constructor & Destructor Documentation

pocketmine\level\generator\GenerationManager::__construct ( GenerationThread  $thread,
\Logger  $logger,
\ClassLoader  $loader 
)
Parameters
GenerationThread$thread
\Logger$logger
\ClassLoader$loader

Definition at line 116 of file GenerationManager.php.

Member Function Documentation

pocketmine\level\generator\GenerationManager::getLogger ( )
Returns

Definition at line 285 of file GenerationManager.php.

pocketmine\level\generator\GenerationManager::requestChunk (   $levelID,
  $chunkX,
  $chunkZ 
)
Parameters
$levelID
$chunkX
$chunkZ
Returns
FullChunk

Definition at line 202 of file GenerationManager.php.


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