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