mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +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)]);
|
unset($this->chunkCache[Level::chunkHash($chunkX, $chunkZ)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getRandomTickedBlocks() : SplFixedArray{
|
||||||
|
return $this->randomTickBlocks;
|
||||||
|
}
|
||||||
|
|
||||||
public function addRandomTickedBlock(int $id){
|
public function addRandomTickedBlock(int $id){
|
||||||
$this->randomTickBlocks[$id] = BlockFactory::get($id);
|
$this->randomTickBlocks[$id] = BlockFactory::get($id);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user