To create an explosion, the following method signatures may be used:
boolean createExplosion(double x, double y, double z, float power);
boolean createExplosion(double x, double y, double z, float power, boolean setFire);
boolean createExplosion(double x, double y, double z, float power,
boolean setFire, boolean breakBlocks);
boolean createExplosion(Location loc, float power);
boolean createExplosion(Location loc, float power, boolean setFire);
Simulating a TnT explosion that break blocks and set fire at x=0, y=0 and z=0
createExplosion(0.0, 0.0, 0.0, 4F, true, true);