Moved bow functionality out of Player

This commit is contained in:
Dylan K. Taylor
2017-08-26 19:04:04 +01:00
parent 6d5620606e
commit a5f5502380
3 changed files with 123 additions and 68 deletions

View File

@ -829,6 +829,16 @@ class Item implements ItemIds, \JsonSerializable{
return false;
}
/**
* Called when a player is using this item and releases it. Used to handle bow shoot actions.
*
* @param Player $player
* @return bool
*/
public function onReleaseUsing(Player $player) : bool{
return false;
}
/**
* Compares an Item to this Item and check if they match.
*