mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Added TieredTool->getTier()
This commit is contained in:
parent
2088a43c56
commit
7e3cd24444
@ -42,6 +42,10 @@ abstract class TieredTool extends Tool{
|
||||
return self::getDurabilityFromTier($this->tier);
|
||||
}
|
||||
|
||||
public function getTier() : int{
|
||||
return $this->tier;
|
||||
}
|
||||
|
||||
public static function getDurabilityFromTier(int $tier) : int{
|
||||
static $levels = [
|
||||
self::TIER_GOLD => 33,
|
||||
|
Loading…
x
Reference in New Issue
Block a user