Class EntityEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  EntityEvent.CanUpdate
      CanUpdate is fired when an Entity is being created.
      static class  EntityEvent.EnteringChunk
      EnteringChunk is fired when an Entity enters a chunk.
      static class  EntityEvent.EntityConstructing
      EntityConstructing is fired when an Entity is being created.
      static class  EntityEvent.Size
      This event is fired whenever the Pose changes, and in a few other hardcoded scenarios.
      CAREFUL: This is also fired in the Entity constructor.
      • Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

        net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Entity entity  
    • Constructor Summary

      Constructors 
      Constructor Description
      EntityEvent​(Entity entity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Entity getEntity()  
      • 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

      • entity

        private final Entity entity
    • Constructor Detail

      • EntityEvent

        public EntityEvent​(Entity entity)
    • Method Detail

      • getEntity

        public Entity getEntity()