Interface ExplosionEvent.Pre
- Enclosing interface:
- ExplosionEvent
public static interface ExplosionEvent.Pre
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResult
explode
(net.minecraft.world.level.Level world, net.minecraft.world.level.Explosion explosion) Invoked before an explosion happens.
-
Method Details
-
explode
net.minecraft.world.InteractionResult explode(net.minecraft.world.level.Level world, net.minecraft.world.level.Explosion explosion) Invoked before an explosion happens. Equivalent to Forge'sExplosionEvent.Start
event.- Parameters:
world
- The level the explosion is happening in.explosion
- The explosion.- Returns:
- Returning
InteractionResult.FAIL
cancels the explosion.
-