pocketmine\block\Fire::getChanceOfNeighborsEncouragingFire PHP Method

getChanceOfNeighborsEncouragingFire() private method

private getChanceOfNeighborsEncouragingFire ( Block $block )
$block Block
    private function getChanceOfNeighborsEncouragingFire(Block $block)
    {
        if ($block->getId() !== self::AIR) {
            return 0;
        } else {
            $chance = 0;
            for ($i = 0; $i < 5; $i++) {
                $chance = max($chance, $block->getSide($i)->getBurnChance());
            }
            return $chance;
        }
    }