Class EntityRemoveFromWorldEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent

public class EntityRemoveFromWorldEvent extends EntityEvent
Fired any time an entity is being removed from a world for any reason (including a chunk unloading). Note: The entity is updated prior to this event being called, as such, the entity's world may not be equal to getWorld().