mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
20 lines
294 B
PHP
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,
|
|
};
|
|
}
|
|
}
|
|
|