public function saveChunks() { foreach ($this->chunks as $chunk) { $this->saveChunk($chunk->getX(), $chunk->getZ()); } }