Skip to content

EntityItemDeathEvent

youyihj edited this page Dec 11, 2023 · 1 revision

EntityItemDeathEvent

@since 1.13.9

This event is fired when an entity item dies, because of lava, fire, void, etc, but not hopper and other transport devices.

Event Class

mods.zenutils.event.EntityItemDeathEvent

Event interface extensions

EntityItemDeath Event implements the following interfaces and are able to call all of their methods/getters/setters as well:

Event manager call

This code calls an event handler of EntityRemove event.

events.onEntityItemDeath(function(event as EntityItemDeathEvent) {...} );

ZenGetters/ZenSetters

The following information can be retrieved/set during the event:

ZenGetter Return Type
item IEntityItem
damageSource IDamageSource
Clone this wiki locally