Package net.minecraftforge.event.entity
Class EntityLeaveWorldEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.EntityLeaveWorldEvent
-
public class EntityLeaveWorldEvent extends EntityEvent
EntityLeaveWorldEvent is fired when an Entity leaves the world.
This event is fired whenever an Entity is removed from the world inClientWorld#removeEntity(Entity)
,ServerWorld#removeEntityComplete(Entity,Boolean)
.
world
contains the world from which the entity is removed.
This event is notCancelable
.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Constructor Summary
Constructors Constructor Description EntityLeaveWorldEvent(Entity entity, World world)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description World
getWorld()
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-