mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
Added method to create an explosion in world. Thanks Zaraza107!
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
10d7e607c8
commit
0786934ce5
1 changed files with 8 additions and 0 deletions
|
@ -479,6 +479,14 @@ public interface World {
|
|||
*/
|
||||
public void setThunderDuration(int duration);
|
||||
|
||||
/**
|
||||
* Creates explosion at given coordinates with given power
|
||||
*
|
||||
* @param power The power of explosion, where 4F is TNT
|
||||
* @return false if explosion was canceled, otherwise true
|
||||
*/
|
||||
public boolean createExplosion(double x, double y, double z, float power);
|
||||
|
||||
/**
|
||||
* Gets the {@link Environment} type of this world
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue