pocketmine\block\NetherBrickFence::getBreakTime PHP Method

getBreakTime() public method

public getBreakTime ( Item $item )
$item pocketmine\item\Item
    public function getBreakTime(Item $item)
    {
        if ($item instanceof Air) {
            //Breaking by hand
            return 10;
        } else {
            // Other breaktimes are equal to woodfences.
            return parent::getBreakTime($item);
        }
    }