mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Player: added API method getUsedChunks()
This commit is contained in:
parent
1905c01c87
commit
cc473184ac
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user