PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (Entity $entity, protected float $radius) | |
call () | |
getEntity () | |
getEventName () | |
getRadius () | |
isBlockBreaking () | |
isCancelled () | |
setBlockBreaking (bool $affectsBlocks) | |
setRadius (float $radius) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
Called when an entity decides to explode, before the explosion's impact is calculated. This allows changing the force of the explosion and whether it will destroy blocks.
@phpstan-extends EntityEvent<Entity>
Definition at line 38 of file EntityPreExplodeEvent.php.
pocketmine\event\entity\EntityPreExplodeEvent::__construct | ( | Entity | $entity, |
protected float | $radius ) |
Definition at line 43 of file EntityPreExplodeEvent.php.
|
inherited |
|
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\EntityPreExplodeEvent::getRadius | ( | ) |
Definition at line 53 of file EntityPreExplodeEvent.php.
|
staticinherited |
pocketmine\event\entity\EntityPreExplodeEvent::isBlockBreaking | ( | ) |
Definition at line 64 of file EntityPreExplodeEvent.php.
|
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\EntityPreExplodeEvent::setBlockBreaking | ( | bool | $affectsBlocks | ) |
Definition at line 68 of file EntityPreExplodeEvent.php.
pocketmine\event\entity\EntityPreExplodeEvent::setRadius | ( | float | $radius | ) |
Definition at line 57 of file EntityPreExplodeEvent.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 |