mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 13:36:16 +01:00
Implemented extended createExplosion methods.
This commit is contained in:
parent
be45f900e5
commit
a8817b7bd1
@ -439,11 +439,19 @@ public class CraftWorld implements World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean createExplosion(double x, double y, double z, float power) {
|
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) {
|
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() {
|
public Environment getEnvironment() {
|
||||||
|
Loading…
Reference in New Issue
Block a user