◆ __construct()
ChunkRequestTask constructor.
- Parameters
-
48 $this->levelId = $level->getId();
51 $this->chunkX =
$chunk->getX();
52 $this->chunkZ =
$chunk->getZ();
57 foreach(
$chunk->getTiles() as $tile){
58 if($tile instanceof Spawnable){
59 $nbt->setData($tile->getSpawnCompound());
60 $tiles .= $nbt->write(
true);
◆ onCompletion()
onCompletion |
( |
Server |
$server | ) |
|
- Parameters
-
79 $level = $server->getLevel($this->levelId);
80 if($level instanceof Level and $this->
hasResult()){
81 $level->chunkRequestCallback($this->chunkX, $this->chunkZ, $this->
getResult());
◆ onRun()
◆ $chunk
◆ $chunkX
◆ $chunkZ
◆ $levelId
◆ $tiles
The documentation for this class was generated from the following file:
- src/pocketmine/level/format/io/ChunkRequestTask.php