Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
048a10371b
commit
1ae5d72f3a
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue