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