public function generateChunkCallback($x, $z, FullChunk $chunk)
{
$oldChunk = $this->getChunk($x, $z, false);
unset($this->chunkGenerationQueue[PHP_INT_SIZE === 8 ? ($x & 4294967295.0) << 32 | $z & 4294967295.0 : $x . ":" . $z]);
$chunk->setProvider($this->provider);
$this->setChunk($x, $z, $chunk);
$chunk = $this->getChunk($x, $z, false);
if ($chunk !== null and ($oldChunk === null or $oldChunk->isPopulated() === false) and $chunk->isPopulated()) {
$this->server->getPluginManager()->callEvent(new ChunkPopulateEvent($chunk));
}
}