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 TypeMethodDescriptionvoidsetExplosion(Explosion explosion) Sets theExplosioninvolved for this event.world()Gets theworld.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.world.ExplosionEvent
explosion
-
Method Details
-
world
ServerWorld world()Gets theworld.- Returns:
- The world
-
setExplosion
Sets theExplosioninvolved 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
-