Player: added API method getUsedChunks()

This commit is contained in:
Dylan K. Taylor 2020-12-01 19:40:22 +00:00
parent 1905c01c87
commit cc473184ac

View File

@ -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<int, UsedChunkStatus>
*/
public function getUsedChunks() : array{
return $this->usedChunks;
}
/**
* Returns whether the target chunk has been sent to this player.
*/