pocketmine\event\block\BlockEvent::__construct PHP Method

__construct() public method

public __construct ( Block $block )
$block pocketmine\block\Block
    public function __construct(Block $block)
    {
        $this->block = $block;
    }

Usage Example

Esempio 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;
 }
All Usage Examples Of pocketmine\event\block\BlockEvent::__construct