NostalgiaCore/src/material/item/base/ItemShovel.php
2024-08-17 16:21:02 +03:00

20 lines
294 B
PHP

<?php
class ItemShovel extends ItemTool
{
public function isShovel(){
return true;
}
public function getLevel(){
return match ($this->id) {
WOODEN_SHOVEL => 1,
GOLDEN_SHOVEL => 2,
STONE_SHOVEL => 3,
IRON_SHOVEL => 4,
DIAMOND_SHOVEL => 5,
default => false,
};
}
}