Class ExplosionEvent.Detonate

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.ExplosionEvent
net.minecraftforge.event.level.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.
  • Field Details

    • entityList

      private final List<Entity> entityList
  • Constructor Details

  • Method Details

    • getAffectedBlocks

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

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