Declare tool harvest level as a property

This commit is contained in:
Dylan K. Taylor
2017-12-11 14:41:48 +00:00
parent 45983acc0d
commit dbc180315e
7 changed files with 37 additions and 9 deletions

View File

@ -35,6 +35,10 @@ class Pickaxe extends TieredTool{
return BlockToolType::TYPE_PICKAXE;
}
public function getBlockToolHarvestLevel() : int{
return $this->tier;
}
public function getAttackPoints() : int{
return self::getBaseDamageFromTier($this->tier) - 2;
}