PocketMine-MP 5.23.3 git-fbaa125d0ce21ffef98fc1630881a92bedfbaa73
|
Public Member Functions | |
__construct (Entity $entity, protected Position $position, protected array $blocks, protected float $yield) | |
call () | |
getBlockList () | |
getEntity () | |
getEventName () | |
getPosition () | |
getYield () | |
isCancelled () | |
setBlockList (array $blocks) | |
setYield (float $yield) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
Called when an entity explodes, after the explosion's impact has been calculated. No changes have been made to the world at this stage.
@phpstan-extends EntityEvent<Entity>
Definition at line 41 of file EntityExplodeEvent.php.
pocketmine\event\entity\EntityExplodeEvent::__construct | ( | Entity | $entity, |
protected Position | $position, | ||
protected array | $blocks, | ||
protected float | $yield ) |
Block[] | $blocks | |
float | $yield | 0-100 |
Definition at line 48 of file EntityExplodeEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
|
inherited |
pocketmine\event\entity\EntityExplodeEvent::getBlockList | ( | ) |
Returns a list of blocks destroyed by the explosion.
Definition at line 69 of file EntityExplodeEvent.php.
|
inherited |
Reimplemented in pocketmine\event\entity\EntityDeathEvent, pocketmine\event\entity\EntityShootBowEvent, pocketmine\event\entity\ItemDespawnEvent, pocketmine\event\entity\ItemSpawnEvent, pocketmine\event\entity\ProjectileHitEvent, pocketmine\event\entity\ProjectileLaunchEvent, and pocketmine\event\player\PlayerDeathEvent.
Definition at line 43 of file EntityEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
pocketmine\event\entity\EntityExplodeEvent::getPosition | ( | ) |
Definition at line 60 of file EntityExplodeEvent.php.
pocketmine\event\entity\EntityExplodeEvent::getYield | ( | ) |
Returns the percentage chance of drops from each block destroyed by the explosion.
Definition at line 87 of file EntityExplodeEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
pocketmine\event\entity\EntityExplodeEvent::setBlockList | ( | array | $blocks | ) |
Sets the blocks destroyed by the explosion.
Block[] | $blocks |
Definition at line 78 of file EntityExplodeEvent.php.
pocketmine\event\entity\EntityExplodeEvent::setYield | ( | float | $yield | ) |
Sets the percentage chance of drops from each block destroyed by the explosion.
float | $yield | 0-100 |
Definition at line 95 of file EntityExplodeEvent.php.
|
protectedinherited |
@phpstan-var TEntity
Definition at line 37 of file EntityEvent.php.
Referenced by pocketmine\event\entity\EntityDamageByBlockEvent\__construct(), pocketmine\event\entity\EntityDamageByChildEntityEvent\__construct(), pocketmine\event\entity\EntityDamageByEntityEvent\__construct(), pocketmine\event\entity\EntityDamageEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\__construct(), pocketmine\event\entity\EntityExplodeEvent\__construct(), pocketmine\event\player\PlayerDeathEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\getEntity(), pocketmine\event\entity\EntityEvent\getEntity(), pocketmine\event\entity\EntityShootBowEvent\getEntity(), pocketmine\event\entity\ItemDespawnEvent\getEntity(), pocketmine\event\entity\ItemSpawnEvent\getEntity(), pocketmine\event\entity\ProjectileHitEvent\getEntity(), and pocketmine\event\entity\ProjectileLaunchEvent\getEntity().
|
protectedinherited |