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

@ -26,7 +26,6 @@ namespace pocketmine\block;
use pocketmine\block\utils\PillarRotationHelper;
use pocketmine\item\Item;
use pocketmine\item\TieredTool;
use pocketmine\item\Tool;
use pocketmine\math\Vector3;
use pocketmine\Player;
@ -47,7 +46,7 @@ class BoneBlock extends Solid{
}
public function getToolType() : int{
return Tool::TYPE_PICKAXE;
return BlockToolType::TYPE_PICKAXE;
}
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{