diff --git a/src/player/Player.php b/src/player/Player.php index 5219b3a637..6216622e04 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -839,6 +839,14 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ return isset($this->usedChunks[World::chunkHash($chunkX, $chunkZ)]); } + /** + * @return UsedChunkStatus[] chunkHash => status + * @phpstan-return array + */ + public function getUsedChunks() : array{ + return $this->usedChunks; + } + /** * Returns whether the target chunk has been sent to this player. */