Package net.minecraftforge.event.world
Class ExplosionEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.ExplosionEvent
-
- Direct Known Subclasses:
ExplosionEvent.Detonate
,ExplosionEvent.Start
public class ExplosionEvent extends net.minecraftforge.eventbus.api.Event
ExplosionEvent triggers when an explosion happens in the world.
ExplosionEvent.Start is fired before the explosion actually occurs.
ExplosionEvent.Detonate is fired once the explosion has a list of affected blocks and entities.
ExplosionEvent.Start isCancelable
.
ExplosionEvent.Detonate can modify the affected blocks and entities.
Children do not useEvent.HasResult
.
Children of this event are fired on theMinecraftForge.EVENT_BUS
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExplosionEvent.Detonate
ExplosionEvent.Detonate is fired once the explosion has a list of affected blocks and entities.static class
ExplosionEvent.Start
ExplosionEvent.Start is fired before the explosion actually occurs.
-
Constructor Summary
Constructors Constructor Description ExplosionEvent(World world, Explosion explosion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Explosion
getExplosion()
World
getWorld()
-