public function requestChunk(Level $level, $chunkX, $chunkZ) { $buffer = chr(GenerationManager::PACKET_REQUEST_CHUNK) . Binary::writeInt($level->getID()) . Binary::writeInt($chunkX) . Binary::writeInt($chunkZ); $this->generationThread->pushMainToThreadPacket($buffer); }