PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (Living $entity, private array $drops=[], private int $xp=0) | |
call () | |
getDrops () | |
getEntity () | |
getEventName () | |
getXpDropAmount () | |
setDrops (array $drops) | |
setXpDropAmount (int $xp) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
@phpstan-extends EntityEvent<Living>
Definition at line 33 of file EntityDeathEvent.php.
pocketmine\event\entity\EntityDeathEvent::__construct | ( | Living | $entity, |
private array | $drops = [], | ||
private int | $xp = 0 ) |
Item[] | $drops |
Definition at line 38 of file EntityDeathEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
|
inherited |
pocketmine\event\entity\EntityDeathEvent::getDrops | ( | ) |
Definition at line 56 of file EntityDeathEvent.php.
pocketmine\event\entity\EntityDeathEvent::getEntity | ( | ) |
Reimplemented from pocketmine\event\entity\EntityEvent.
Reimplemented in pocketmine\event\player\PlayerDeathEvent.
Definition at line 49 of file EntityDeathEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
pocketmine\event\entity\EntityDeathEvent::getXpDropAmount | ( | ) |
Returns how much experience is dropped due to this entity's death.
Definition at line 71 of file EntityDeathEvent.php.
|
staticinherited |
pocketmine\event\entity\EntityDeathEvent::setDrops | ( | array | $drops | ) |
Item[] | $drops |
Definition at line 63 of file EntityDeathEvent.php.
pocketmine\event\entity\EntityDeathEvent::setXpDropAmount | ( | int | $xp | ) |
|
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 |