BlockExplodeEvent
Extends BlockEvent
Implements Cancellable
Called when a block explodes, after explosion impact has been calculated.
Methods
__construct()
php
public function __construct(\pocketmine\block\Block $block, \pocketmine\world\Position $position, array $blocks, float $yield, array $ignitions)getAffectedBlocks()
php
public function getAffectedBlocks() : arrayReturns a list of blocks destroyed by the explosion.
getIgnitions()
php
public function getIgnitions() : arrayReturns a list of affected blocks that will be replaced by fire.
getPosition()
php
public function getPosition() : \pocketmine\world\PositiongetYield()
php
public function getYield() : floatReturns the percentage chance of drops from each block destroyed by the explosion.
setAffectedBlocks()
php
public function setAffectedBlocks(array $blocks) : voidSets the blocks destroyed by the explosion.
setIgnitions()
php
public function setIgnitions(array $ignitions) : voidSet the list of blocks that will be replaced by fire.
setYield()
php
public function setYield(float $yield) : voidSets the percentage chance of drops from each block destroyed by the explosion.
