Exemplo n.º 1
0
 public function __construct(Furnace $furnace, Item $fuel, $burnTime)
 {
     parent::__construct($furnace->getBlock());
     $this->fuel = $fuel;
     $this->burnTime = (int) $burnTime;
     $this->furnace = $furnace;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public function __construct(Block $block, Block $newState)
 {
     parent::__construct($block);
     $this->newState = $newState;
 }
Exemplo n.º 4
0
 /**
  * @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;
 }
Exemplo n.º 5
0
 public function __construct(Block $block)
 {
     parent::__construct($block);
 }