BedrioxDOCUMENTATION
API CLASS

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(): array

Typed public method.

setDrops(array $drops): void

Typed public method.

addDrop(Bedriox\Api\Inventory\ItemStack $drop): void

Typed public method.

clearDrops(): void

Typed public method.

Constants

MAXIMUM_DROPS

View exact source ↗