mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Add API for creating explosions without damaging blocks. Fixes BUKKIT-3061
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
09c601dfa5
commit
81cc73ac21
1 changed files with 14 additions and 0 deletions
|
@ -560,6 +560,20 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|||
*/
|
||||
public 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 or breaking blocks.
|
||||
*
|
||||
* @param x X coordinate
|
||||
* @param y Y coordinate
|
||||
* @param z Z coordinate
|
||||
* @param power The power of explosion, where 4F is TNT
|
||||
* @param setFire Whether or not to set blocks on fire
|
||||
* @param breakBlocks Whether or not to have blocks be destroyed
|
||||
* @return false if explosion was canceled, otherwise true
|
||||
*/
|
||||
public boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks);
|
||||
|
||||
/**
|
||||
* Creates explosion at given coordinates with given power
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue