Clean up Tool garbage leftovers

these were intended to be removed long ago, but other things came up and durability handling still depended on them.
This commit is contained in:
Dylan K. Taylor 2018-05-11 09:23:51 +01:00
parent b21572774a
commit 083ac8a770
7 changed files with 0 additions and 48 deletions

View File

@ -29,10 +29,6 @@ use pocketmine\entity\Entity;
class Axe extends TieredTool{
public function isAxe(){
return $this->tier;
}
public function getBlockToolType() : int{
return BlockToolType::TYPE_AXE;
}

View File

@ -27,10 +27,6 @@ use pocketmine\entity\Entity;
class Hoe extends TieredTool{
public function isHoe(){
return $this->tier;
}
public function onAttackEntity(Entity $victim) : bool{
return $this->applyDamage(1);
}

View File

@ -738,30 +738,6 @@ class Item implements ItemIds, \JsonSerializable{
return 0;
}
public function isPickaxe(){
return false;
}
public function isAxe(){
return false;
}
public function isSword(){
return false;
}
public function isShovel(){
return false;
}
public function isHoe(){
return false;
}
public function isShears(){
return false;
}
public function getMiningEfficiency(Block $block) : float{
return 1;
}

View File

@ -29,10 +29,6 @@ use pocketmine\entity\Entity;
class Pickaxe extends TieredTool{
public function isPickaxe(){
return $this->tier;
}
public function getBlockToolType() : int{
return BlockToolType::TYPE_PICKAXE;
}

View File

@ -35,10 +35,6 @@ class Shears extends Tool{
return 239;
}
public function isShears(){
return true;
}
public function getBlockToolType() : int{
return BlockToolType::TYPE_SHEARS;
}

View File

@ -29,10 +29,6 @@ use pocketmine\entity\Entity;
class Shovel extends TieredTool{
public function isShovel(){
return $this->tier;
}
public function getBlockToolType() : int{
return BlockToolType::TYPE_SHOVEL;
}

View File

@ -29,10 +29,6 @@ use pocketmine\entity\Entity;
class Sword extends TieredTool{
public function isSword(){
return $this->tier;
}
public function getBlockToolType() : int{
return BlockToolType::TYPE_SWORD;
}