EntityExplodeEvent
Extends EntityEvent
Implements Cancellable
Called when an entity explodes, after the explosion's impact has been calculated. No changes have been made to the world at this stage.
Properties
$blocks
php
public array $blocks$position
php
public \pocketmine\world\Position $position$yield
php
public float $yieldMethods
__construct()
php
public function __construct(\pocketmine\entity\Entity $entity, \pocketmine\world\Position $position, array $blocks, float $yield, array $ignitions = [])getBlockList()
php
public function getBlockList() : 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.
setBlockList()
php
public function setBlockList(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.
