summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-06-09 04:17:19 -0400
committerEvilSeph <evilseph@unaligned.org>2011-06-09 04:17:19 -0400
commit4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3 (patch)
tree8e68e94a2fa9fde983d2b833614ba78cee2d7e20 /src/main
parentb0714775e1d153a04475970601ccc67f768079df (diff)
downloadcraftbukkit-4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3.tar
craftbukkit-4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3.tar.gz
craftbukkit-4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3.tar.lz
craftbukkit-4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3.tar.xz
craftbukkit-4a0eb0a4a11f84f9c3f940dab5b40c1b57b81af3.zip
Added method to create an explosion in world. Thanks Zaraza107!
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 33c7a955..d15926e3 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;
}