Interface ExplosionEvent.Pre
- Enclosing interface:
- ExplosionEvent
public static interface ExplosionEvent.Pre
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.InteractionResultexplode(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.Startevent.- Parameters:
world- The level the explosion is happening in.explosion- The explosion.- Returns:
- Returning
InteractionResult.FAILcancels the explosion.
-