public function getMaxDurability()
{
$levels = [Tool::TIER_GOLD => 33, Tool::TIER_WOODEN => 60, Tool::TIER_STONE => 132, Tool::TIER_IRON => 251, Tool::TIER_DIAMOND => 1562, self::FLINT_STEEL => 65, self::SHEARS => 239, self::BOW => 385];
if (($type = $this->isPickaxe()) === false) {
if (($type = $this->isAxe()) === false) {
if (($type = $this->isSword()) === false) {
if (($type = $this->isShovel()) === false) {
if (($type = $this->isHoe()) === false) {
$type = $this->id;
}
}
}
}
}
return $levels[$type];
}