Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 3
0
 public function __construct(Block $block, Block $newState)
 {
     parent::__construct($block);
     $this->newState = $newState;
 }
Ejemplo 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;
 }
Ejemplo n.º 5
0
 public function __construct(Block $block)
 {
     parent::__construct($block);
 }