createExplosion

public abstract boolean createExplosion(double x, double y, double z, float power)

Creates explosion at given coordinates with given power

Return

false if explosion was canceled, otherwise true

Parameters

x

X coordinate

y

Y coordinate

z

Z coordinate

power

The power of explosion, where 4F is TNT


public abstract boolean createExplosion(double x, double y, double z, float power, boolean setFire)

Creates explosion at given coordinates with given power and optionally setting blocks on fire.

Return

false if explosion was canceled, otherwise true

Parameters

x

X coordinate

y

Y coordinate

z

Z coordinate

power

The power of explosion, where 4F is TNT

setFire

Whether or not to set blocks on fire


public abstract boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks)

Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.

Return

false if explosion was canceled, otherwise true

Parameters

x

X coordinate

y

Y coordinate

z

Z coordinate

power

The power of explosion, where 4F is TNT

setFire

Whether or not to set blocks on fire

breakBlocks

Whether or not to have blocks be destroyed


public abstract boolean createExplosion(Location loc, float power)

Creates explosion at given coordinates with given power

Return

false if explosion was canceled, otherwise true

Parameters

loc

Location to blow up

power

The power of explosion, where 4F is TNT


public abstract boolean createExplosion(Location loc, float power, boolean setFire)

Creates explosion at given coordinates with given power and optionally setting blocks on fire.

Return

false if explosion was canceled, otherwise true

Parameters

loc

Location to blow up

power

The power of explosion, where 4F is TNT

setFire

Whether or not to set blocks on fire