mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
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:
parent
b21572774a
commit
083ac8a770
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -35,10 +35,6 @@ class Shears extends Tool{
|
||||
return 239;
|
||||
}
|
||||
|
||||
public function isShears(){
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getBlockToolType() : int{
|
||||
return BlockToolType::TYPE_SHEARS;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user