It may be worth noting that MC applies a very quick potion effect to the player when a potion is consumed. To determine if the effect applied is a splash potion I would do this:

```java
if(cause == POTION){
    if(duration > 0){
        // Is splash
    }
}
```