EntityDeathEvent
Non-cancellable death notification emitted after health reaches zero and before the stable, once-evaluated drop list is spawned.
Bedriox\Api\Event\Entity\EntityDeathEvent
classBedriox\Api\Event\Entity
Public methods
__construct(Bedriox\Api\Entity\LivingEntity $entity, ?Bedriox\Api\Event\Entity\EntityDamageEvent $lastDamage, array $drops = [])Typed public method.
getDrops(): arrayTyped public method.
setDrops(array $drops): voidTyped public method.
addDrop(Bedriox\Api\Inventory\ItemStack $drop): voidTyped public method.
clearDrops(): voidTyped public method.
Constants
MAXIMUM_DROPS
