Interface ExplosionEvent.Pre
- All Superinterfaces:
Cancellable
,Event
,ExplosionEvent
- Enclosing interface:
- ExplosionEvent
An event that is fired before the explosion occurs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.world.ExplosionEvent
ExplosionEvent.Detonate, ExplosionEvent.Pre
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setExplosion
(Explosion explosion) Sets theExplosion
involved for this event.world()
Gets theworld
.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.world.ExplosionEvent
explosion
-
Method Details
-
world
ServerWorld world()Gets theworld
.- Returns:
- The world
-
setExplosion
Sets theExplosion
involved for this event. This will override the explosion used before calculations take place with regards to the blocks and entities affected.- Parameters:
explosion
- The new explosion
-