mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Level: Added getRandomTickedBlocks() function (#2089)
This commit is contained in:
parent
606407933e
commit
bd3d2451bc
@ -967,6 +967,10 @@ class Level implements ChunkManager, Metadatable{
|
||||
unset($this->chunkCache[Level::chunkHash($chunkX, $chunkZ)]);
|
||||
}
|
||||
|
||||
public function getRandomTickedBlocks() : SplFixedArray{
|
||||
return $this->randomTickBlocks;
|
||||
}
|
||||
|
||||
public function addRandomTickedBlock(int $id){
|
||||
$this->randomTickBlocks[$id] = BlockFactory::get($id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user