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