Cancel Explosions

Hey, I’m looking to cancel explosions. I see the ExplosionEvent is not cancelable. How should I do this? Also, since it was a part of my approach at one point and I’m now curious, how would I detect when a TNTMinecart is placed (since it’s an entity and I don’t see a BlockTypes.TNTMinecart)? Thanks a ton!

ExplosionEvent.Pre is cancelable ^^

And EntityTypes.MINECART is a thing. Not sure if TNT minecart is its own entity, or just a minecart variant.