Class EntityRemoveEvent


public class EntityRemoveEvent extends EntityEvent
Called when an Entity is removed.

This event should only be used for monitoring. The result of modifying the entity during or after this event is unspecified. This event is not called for a Player.

It differs from EntityRemoveFromWorldEvent as to when it is called. Modifications to the entity, as noted above, are not defined and are expected to not be persisted in e.g., chunk unloads.