summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunkid <sunkid@iminurnetz.com>2011-06-12 15:49:52 -0700
committerEvilSeph <evilseph@unaligned.org>2011-06-17 01:44:32 -0400
commita8817b7bd10b2b716d849d5fb5e05566107cb2e3 (patch)
tree94fdaee51c8ca7803cc14b3fc1d7410a1e69878d
parentbe45f900e5544ead9bdf0a17dfc11cc930357a77 (diff)
downloadcraftbukkit-a8817b7bd10b2b716d849d5fb5e05566107cb2e3.tar
craftbukkit-a8817b7bd10b2b716d849d5fb5e05566107cb2e3.tar.gz
craftbukkit-a8817b7bd10b2b716d849d5fb5e05566107cb2e3.tar.lz
craftbukkit-a8817b7bd10b2b716d849d5fb5e05566107cb2e3.tar.xz
craftbukkit-a8817b7bd10b2b716d849d5fb5e05566107cb2e3.zip
Implemented extended createExplosion methods.
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 0482b9c0..e1ac08ab 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -41,7 +41,7 @@ public class CraftWorld implements World {
public CraftWorld(WorldServer world, ChunkGenerator gen, Environment env) {
this.world = world;
this.generator = gen;
-
+
environment = env;
}
@@ -439,17 +439,25 @@ 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;
+ return createExplosion(x, y, z, power, false);
+ }
+
+ public boolean createExplosion(double x, double y, double z, float power, boolean setFire) {
+ return world.createExplosion(null, x, y, z, power, setFire).wasCanceled ? false : true;
}
public boolean createExplosion(Location loc, float power) {
- return world.a(null, loc.getX(), loc.getY(), loc.getZ(), power).wasCanceled ? false : true;
+ return createExplosion(loc, power, false);
+ }
+
+ public boolean createExplosion(Location loc, float power, boolean setFire) {
+ return createExplosion(loc.getX(), loc.getY(), loc.getZ(), power, setFire);
}
public Environment getEnvironment() {
return environment;
}
-
+
public void setEnvironment(Environment env) {
if (environment != env) {
environment = env;
@@ -646,8 +654,8 @@ public class CraftWorld implements World {
public void setPVP(boolean pvp) {
world.pvpMode = pvp;
- }
-
+ }
+
public void playEffect(Player player, Effect effect, int data) {
playEffect(player.getLocation(), effect, data, 0);
}
@@ -666,5 +674,5 @@ public class CraftWorld implements World {
((CraftPlayer) player).getHandle().netServerHandler.sendPacket(packet);
}
}
- }
+ }
}