public function __construct(Furnace $furnace, Item $fuel, $burnTime) { parent::__construct($furnace->getBlock()); $this->fuel = $fuel; $this->burnTime = (int) $burnTime; $this->furnace = $furnace; }
/** * @param Block $block * @param Player $player * @param Item $dropItem * @param Float $dropChance */ public function __construct(Block $block, Player $player, Item $dropItem, $dropChance) { parent::__construct($block); $this->player = $player; $this->item = $dropItem; $this->dropChance = (double) $dropChance; }
public function __construct(Furnace $furnace, Item $source, Item $result) { parent::__construct($furnace->getBlock()); $this->source = clone $source; $this->source->setCount(1); $this->result = $result; $this->furnace = $furnace; }
/** * @param Block $theBlock * @param Player $thePlayer * @param string[] $theLines */ public function __construct(Block $theBlock, Player $thePlayer, array $theLines) { parent::__construct($theBlock); $this->player = $thePlayer; $this->lines = $theLines; }
public function __construct(Block $block) { parent::__construct($block); }
public function __construct(Block $block, Block $newState) { parent::__construct($block); $this->newState = $newState; }