mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Player: added API method getUsedChunks()
This commit is contained in:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user