From 766e55597e9fc5ba26adb5c67ef639eeadcc1258 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 9 Jun 2011 04:12:39 -0400 Subject: [PATCH] Added method to create an explosion in world. Thanks Zaraza107! --- src/main/java/org/bukkit/World.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index 16a3f3e8..e8259f8b 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -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 *