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