mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 17:52:28 +01:00
Added method to create an explosion in world. Thanks Zaraza107!
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
0965fddfe3
commit
747d1962ab
1 changed files with 4 additions and 0 deletions
|
@ -441,6 +441,10 @@ 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;
|
||||
}
|
||||
|
||||
public Environment getEnvironment() {
|
||||
return environment;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue