Class 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 in ClientWorld#removeEntity(Entity), ServerWorld#removeEntityComplete(Entity,Boolean).

    world contains the world from which the entity is removed.

    This event is not Cancelable.

    This event does not have a result. Event.HasResult

    This event is fired on the MinecraftForge.EVENT_BUS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private World world  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      World getWorld()  
      • Methods inherited from class net.minecraftforge.eventbus.api.Event

        getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • world

        private final World world
    • Constructor Detail

      • EntityLeaveWorldEvent

        public EntityLeaveWorldEvent​(Entity entity,
                                     World world)
    • Method Detail

      • getWorld

        public World getWorld()