Class ExplosionEvent.Detonate

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.ExplosionEvent
net.neoforged.neoforge.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 ICancellableEvent.
This event does not use
invalid reference
HasResult
.
This event is fired on the NeoForge.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.