Block: added getDropsForIncompatibleTool()

This commit is contained in:
Dylan K. Taylor
2021-06-11 19:09:14 +01:00
parent e4ed7bc4ea
commit 7dcc4891ca
4 changed files with 18 additions and 19 deletions

View File

@ -369,6 +369,15 @@ class Block{
return [$this->asItem()];
}
/**
* Returns the items dropped by this block when broken with an incorrect tool type (or tool with a too-low tier).
*
* @return Item[]
*/
public function getDropsForIncompatibleTool(Item $item) : array{
return [];
}
/**
* Returns an array of Items to be dropped when the block is broken using a compatible Silk Touch-enchanted tool.
*