Skip to main content

Class: EntityRemoveAfterEvent

Data for an event that happens when an entity is removed from the world (for example, the entity is unloaded because it is not close to players.)

Constructors

new EntityRemoveAfterEvent()

private new EntityRemoveAfterEvent(): EntityRemoveAfterEvent

Returns

EntityRemoveAfterEvent

Properties

removedEntityId

readonly removedEntityId: string

Remarks

Id of the entity that was removed.


typeId

readonly typeId: string

Remarks

Identifier of the type of the entity removed - for example, 'minecraft:skeleton'.