Class ExplosionEvent.Detonate

  • Enclosing class:
    ExplosionEvent

    public static class ExplosionEvent.Detonate
    extends ExplosionEvent
    ExplosionEvent.Detonate is fired once the explosion has a list of affected blocks and entities. These lists can be modified to change the outcome.

    This event is not Cancelable.
    This event does not use Event.HasResult.
    This event is fired on the MinecraftForge.EVENT_BUS.
    • Nested Class Summary

      • 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 java.util.List<Entity> entityList  
    • Constructor Summary

      Constructors 
      Constructor Description
      Detonate​(World world, Explosion explosion, java.util.List<Entity> entityList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<BlockPos> getAffectedBlocks()
      return the list of blocks affected by the explosion.
      java.util.List<Entity> getAffectedEntities()
      return the list of entities affected by the explosion.
      • 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

      • entityList

        private final java.util.List<Entity> entityList
    • Constructor Detail

      • Detonate

        public Detonate​(World world,
                        Explosion explosion,
                        java.util.List<Entity> entityList)
    • Method Detail

      • getAffectedBlocks

        public java.util.List<BlockPos> getAffectedBlocks()
        return the list of blocks affected by the explosion.
      • getAffectedEntities

        public java.util.List<Entity> getAffectedEntities()
        return the list of entities affected by the explosion.