Skip to content

EntityDeathEvent ​

class · pocketmine\event\entity\EntityDeathEvent · source

Extends EntityEvent

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Living $entity, array $drops = [], int $xp = 0)

getDrops() ​

php
public function getDrops() : array

getEntity() ​

php
public function getEntity()

getXpDropAmount() ​

php
public function getXpDropAmount() : int

Returns how much experience is dropped due to this entity's death.

setDrops() ​

php
public function setDrops(array $drops) : void

setXpDropAmount() ​

php
public function setXpDropAmount(int $xp) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.