blockReplace = $blockReplace; $this->blockAgainst = $blockAgainst; $this->item = $item; $this->player = $player; } /** * Returns the player who is placing the block. * @return Player */ public function getPlayer() : Player{ return $this->player; } /** * Gets the item in hand * @return Item */ public function getItem() : Item{ return $this->item; } /** * @return Block */ public function getBlockReplaced() : Block{ return $this->blockReplace; } /** * @return Block */ public function getBlockAgainst() : Block{ return $this->blockAgainst; } }