Пример #1
0
 public function __construct(Furnace $furnace, Item $fuel, $burnTime)
 {
     parent::__construct($furnace->getBlock());
     $this->fuel = $fuel;
     $this->burnTime = (int) $burnTime;
     $this->furnace = $furnace;
 }
Пример #2
0
 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;
 }