public function __construct(Player $player, Block $blockPlace, Block $blockReplace, Block $blockAgainst, Item $item) { $this->block = $blockPlace; $this->blockReplace = $blockReplace; $this->blockAgainst = $blockAgainst; $this->item = $item; $this->player = $player; }
public function __construct(TreadFarmlandPlayer $player, Block $farmland) { $blockPlace = Block::get(Block::DIRT); $blockPlace->position($farmland); parent::__construct($player, $blockPlace, $farmland, $farmland, Item::get(0, 0, 0)); }