player = $player; $this->item = $item; $this->blockTouched = $block; $this->touchVector = $touchVector ?? new Vector3(0, 0, 0); $this->blockFace = $face; $this->action = $action; } public function getAction() : int{ return $this->action; } public function getItem() : Item{ return $this->item; } public function getBlock() : Block{ return $this->blockTouched; } public function getTouchVector() : Vector3{ return $this->touchVector; } public function getFace() : int{ return $this->blockFace; } }