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

Public Member Functions

 __construct (Server $server, GenerationInstanceManager $manager)
 
 openLevel ($levelID, $seed, $class, array $options)
 
 generateChunk ($levelID, $chunkX, $chunkZ)
 
 process ()
 
 shutdown ()
 
 closeLevel ($levelID)
 
 enqueueChunk ($levelID, $chunkX, $chunkZ)
 
 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

 receiveChunk ($levelID, FullChunk $chunk)
 

Protected Attributes

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

Detailed Description

Definition at line 28 of file GenerationLevelManager.php.

Constructor & Destructor Documentation

pocketmine\level\generator\GenerationLevelManager::__construct ( Server  $server,
GenerationInstanceManager  $manager 
)
Parameters
Server$server
GenerationInstanceManager$manager

Definition at line 48 of file GenerationLevelManager.php.

Member Function Documentation

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

Definition at line 140 of file GenerationLevelManager.php.

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

Definition at line 129 of file GenerationLevelManager.php.


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