mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
c70487a3ee
commit
727890f5a8
1 changed files with 9 additions and 0 deletions
|
@ -493,6 +493,15 @@ public interface World {
|
||||||
*/
|
*/
|
||||||
public boolean createExplosion(double x, double y, double z, float power);
|
public boolean createExplosion(double x, double y, double z, float power);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates explosion at given coordinates with given power
|
||||||
|
*
|
||||||
|
* @param loc
|
||||||
|
* @param power The power of explosion, where 4F is TNT
|
||||||
|
* @return false if explosion was canceled, otherwise true
|
||||||
|
*/
|
||||||
|
public boolean createExplosion(Location loc, float power);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the {@link Environment} type of this world
|
* Gets the {@link Environment} type of this world
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue