Skip to content

EntityRemoveEvent

youyihj edited this page Dec 11, 2023 · 1 revision

EntityRemoveEvent

@since 1.12.2

EntityRemoveEvent is fired when an Entity destroyed or unloaded.

This event is not cancelled.

Event Class

mods.zenutils.event.EntityRemoveEvent

Event interface extensions

EntityRemove 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.onEntityRemove(function(event as EntityRemoveEvent) {...} );

ZenGetters/ZenSetters

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

ZenGetter Return Type
world IWorld
Clone this wiki locally