Interface ExplosionEvent.Pre

Enclosing interface:
ExplosionEvent

public static interface ExplosionEvent.Pre
  • Method Summary

    Modifier and Type
    Method
    Description
    net.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's ExplosionEvent.Start event.
      Parameters:
      world - The level the explosion is happening in.
      explosion - The explosion.
      Returns:
      Returning InteractionResult.FAIL cancels the explosion.