From cf707e15c286ca5a2ad7b2f257de39b9e50e5650 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 15 Dec 2022 19:36:16 +0000 Subject: [PATCH] fix --- src/item/Item.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/item/Item.php b/src/item/Item.php index de23f1e61..9fdcef670 100644 --- a/src/item/Item.php +++ b/src/item/Item.php @@ -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; }