Move block-breaking tool-type constants to a BlockToolType interface

This commit is contained in:
Dylan K. Taylor
2017-11-24 11:19:19 +00:00
parent 7e3cd24444
commit 55d0684565
100 changed files with 147 additions and 235 deletions

View File

@ -25,7 +25,6 @@ namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\item\ItemFactory;
use pocketmine\item\Tool;
class Gravel extends Fallable{
@ -44,7 +43,7 @@ class Gravel extends Fallable{
}
public function getToolType() : int{
return Tool::TYPE_SHOVEL;
return BlockToolType::TYPE_SHOVEL;
}
public function getDrops(Item $item) : array{