Declare tool harvest level as a property

This commit is contained in:
Dylan K. Taylor
2017-12-11 14:41:48 +00:00
parent 45983acc0d
commit dbc180315e
7 changed files with 37 additions and 9 deletions

View File

@ -752,6 +752,10 @@ class Item implements ItemIds, \JsonSerializable{
return BlockToolType::TYPE_NONE;
}
public function getBlockToolHarvestLevel() : int{
return 0;
}
/**
* Returns the maximum amount of damage this item can take before it breaks.
*