summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-06-09 23:13:38 -0700
committersk89q <the.sk89q@gmail.com>2011-06-09 23:13:38 -0700
commitccabbcbf0aff6f37a9b555f970b1928a931478e0 (patch)
tree9d777a207db58aaa7108b94bef3a1fff9721e8a7 /src/main/java/org/bukkit
parenta25ab644dfb41940c98ef1a3894339fdf883b50b (diff)
downloadcraftbukkit-ccabbcbf0aff6f37a9b555f970b1928a931478e0.tar
craftbukkit-ccabbcbf0aff6f37a9b555f970b1928a931478e0.tar.gz
craftbukkit-ccabbcbf0aff6f37a9b555f970b1928a931478e0.tar.lz
craftbukkit-ccabbcbf0aff6f37a9b555f970b1928a931478e0.tar.xz
craftbukkit-ccabbcbf0aff6f37a9b555f970b1928a931478e0.zip
Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values.
Diffstat (limited to 'src/main/java/org/bukkit')
-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 785ca2d5..baa1c3f2 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -446,6 +446,10 @@ public class CraftWorld implements World {
return world.a(null, x, y, z, power).wasCanceled ? false : true;
}
+ public boolean createExplosion(Location loc, float power) {
+ return world.a(null, loc.getX(), loc.getY(), loc.getZ(), power).wasCanceled ? false : true;
+ }
+
public Environment getEnvironment() {
return environment;
}