EntityDeathEvent
Extends EntityEvent
Methods
__construct()
php
public function __construct(\pocketmine\entity\Living $entity, array $drops = [], int $xp = 0)getDrops()
php
public function getDrops() : arraygetEntity()
php
public function getEntity()getXpDropAmount()
php
public function getXpDropAmount() : intReturns how much experience is dropped due to this entity's death.
setDrops()
php
public function setDrops(array $drops) : voidsetXpDropAmount()
php
public function setXpDropAmount(int $xp) : void