Is this not equivalent to:

```java
if (wcfg.explosionFlagCancellation) {
    event.setCancelled(true);
} else if (wcfg.useExplosionBlockFiltering) {
    event.blockList().clear();
}
```