mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 19:46:21 +01:00
Added World.createExplosion() that takes a Location, instead of just raw X, Y, Z values.
This commit is contained in:
parent
a25ab644df
commit
ccabbcbf0a
@ -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…
Reference in New Issue
Block a user