Class EntityRemoveFromWorldEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent
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()
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EntityRemoveFromWorldEvent
-
-
Method Details
-
getWorld
- Returns:
- The world that the entity is being removed from
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-