Block: document onInteract() clickVector

This commit is contained in:
Dylan K. Taylor 2023-06-21 16:57:39 +01:00
parent 9d0d60afd1
commit 6f82942c64
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -467,7 +467,8 @@ class Block{
/**
* Do actions when interacted by Item. Returns if it has done anything
*
* @param Item[] &$returnedItems Items to be added to the target's inventory (or dropped, if the inventory is full)
* @param Vector3 $clickVector Exact position where the click occurred, relative to the block's integer position
* @param Item[] &$returnedItems Items to be added to the target's inventory (or dropped, if the inventory is full)
*/
public function onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null, array &$returnedItems = []) : bool{
return false;