Interface ExplosionEvent.Pre

Enclosing interface:
ExplosionEvent

public static interface ExplosionEvent.Pre
  • Method Summary

    Modifier and Type
    Method
    Description
    explode(net.minecraft.world.level.Level level, net.minecraft.world.level.Explosion explosion)
    Invoked before an explosion happens.
  • Method Details

    • explode

      EventResult explode(net.minecraft.world.level.Level level, net.minecraft.world.level.Explosion explosion)
      Invoked before an explosion happens. Equivalent to Forge's ExplosionEvent.Start event.
      Parameters:
      level - The level the explosion is happening in.
      explosion - The explosion.
      Returns:
      A EventResult determining the outcome of the event, the execution of the vanilla explosion may be cancelled by the result.