Item: removed isTool()

this should be replaced with `instanceof Tool`.
This commit is contained in:
Dylan K. Taylor 2018-05-01 20:05:48 +01:00
parent 0247dff909
commit 3095eb544d
2 changed files with 0 additions and 11 deletions

View File

@ -724,13 +724,6 @@ class Item implements ItemIds, \JsonSerializable{
return false;
}
/**
* @return bool
*/
public function isTool(){
return false;
}
/**
* Returns what type of block-breaking tool this is. Blocks requiring the same tool type as the item will break
* faster (except for blocks requiring no tool, which break at the same speed regardless of the tool used)

View File

@ -64,10 +64,6 @@ abstract class Tool extends Durable{
return true;
}
public function isTool(){
return true;
}
public function getMiningEfficiency(Block $block) : float{
$efficiency = 1;
if(($block->getToolType() & $this->getBlockToolType()) !== 0){