This commit is contained in:
Dylan K. Taylor 2022-12-15 19:36:16 +00:00
parent 1308cda5c2
commit cf707e15c2
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -556,8 +556,11 @@ class Item implements \JsonSerializable{
/**
* Called when a player uses the item to interact with entity, for example by using a name tag.
*
* @param Vector3 $clickVector The exact position of the click (absolute coordinates)
* @return bool whether some action took place
*/
public function onInteractEntity(Player $player, Entity $entity, Vector3 $directionVector) : bool{
public function onInteractEntity(Player $player, Entity $entity, Vector3 $clickVector) : bool{
return false;
}