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

@ -23,8 +23,6 @@ declare(strict_types=1);
namespace pocketmine\block;
use pocketmine\item\Tool;
class WoodenFence extends Fence{
public const FENCE_OAK = 0;
public const FENCE_SPRUCE = 1;
@ -40,7 +38,7 @@ class WoodenFence extends Fence{
}
public function getToolType() : int{
return Tool::TYPE_AXE;
return BlockToolType::TYPE_AXE;
}
public function getName() : string{