mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Block: added getDropsForIncompatibleTool()
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user