diff options
author | sk89q <the.sk89q@gmail.com> | 2011-06-09 23:13:38 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-06-09 23:13:38 -0700 |
commit | ccabbcbf0aff6f37a9b555f970b1928a931478e0 (patch) | |
tree | 9d777a207db58aaa7108b94bef3a1fff9721e8a7 /src | |
parent | a25ab644dfb41940c98ef1a3894339fdf883b50b (diff) | |
download | craftbukkit-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')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 |
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; } |