From ccabbcbf0aff6f37a9b555f970b1928a931478e0 Mon Sep 17 00:00:00 2001 From: sk89q Date: Thu, 9 Jun 2011 23:13:38 -0700 Subject: [PATCH] Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values. --- 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 785ca2d595..baa1c3f26e 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; }