player = $player; } /** * Returns the item used. */ public function getItem() : Item{ return $this->item; } /** * Returns the direction the player is aiming when activating this item. Used for projectile direction. */ public function getDirectionVector() : Vector3{ return $this->directionVector; } }