From 4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 9 Jun 2011 04:17:19 -0400 Subject: [PATCH] Added method to create an explosion in world. Thanks Zaraza107! --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 33c7a95530..d15926e37e 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -441,6 +441,10 @@ public class CraftWorld implements World { } } + public boolean createExplosion(double x, double y, double z, float power) { + return world.a(null, x, y, z, power).wasCanceled ? false : true; + } + public Environment getEnvironment() { return environment; }