From 91ae9cbf9243ed20bfc4e7a9867ace313c5394f2 Mon Sep 17 00:00:00 2001 From: sunkid Date: Sun, 12 Jun 2011 15:48:05 -0700 Subject: [PATCH] Added setFire option to createExplosion methods. --- src/main/java/org/bukkit/World.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index eb0315cb..99098d9b 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -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 *