mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Added setFire option to createExplosion methods.
By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
parent
615b1a9f3f
commit
e1ffe6625c
1 changed files with 24 additions and 0 deletions
|
@ -493,6 +493,19 @@ public interface World {
|
|||
*/
|
||||
public boolean createExplosion(double x, double y, double z, float power);
|
||||
|
||||
/**
|
||||
* Creates explosion at given coordinates with given power and optionally setting
|
||||
* blocks on fire.
|
||||
*
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @param power The power of explosion, where 4F is TNT
|
||||
* @param setFire Whether or not to set blocks on fire
|
||||
* @return false if explosion was canceled, otherwise true
|
||||
*/
|
||||
public boolean createExplosion(double x, double y, double z, float power, boolean setFire);
|
||||
|
||||
/**
|
||||
* Creates explosion at given coordinates with given power
|
||||
*
|
||||
|
@ -502,6 +515,17 @@ public interface World {
|
|||
*/
|
||||
public boolean createExplosion(Location loc, float power);
|
||||
|
||||
/**
|
||||
* Creates explosion at given coordinates with given power and optionally setting
|
||||
* blocks on fire.
|
||||
*
|
||||
* @param loc
|
||||
* @param power The power of explosion, where 4F is TNT
|
||||
* @param setFire Whether or not to set blocks on fire
|
||||
* @return false if explosion was canceled, otherwise true
|
||||
*/
|
||||
public boolean createExplosion(Location loc, float power, boolean setFire);
|
||||
|
||||
/**
|
||||
* Gets the {@link Environment} type of this world
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue