Level: Added getRandomTickedBlocks() function (#2089)

This commit is contained in:
Oreo Oreoniv 2018-03-10 14:32:01 +03:00 committed by Dylan K. Taylor
parent 606407933e
commit bd3d2451bc

View File

@ -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);
}