Added method to create an explosion in world. Thanks Zaraza107!

This commit is contained in:
EvilSeph 2011-06-09 04:12:39 -04:00
parent 8c3a7e75f6
commit 766e55597e

View File

@ -479,6 +479,14 @@ public interface World {
*/ */
public void setThunderDuration(int duration); public void setThunderDuration(int duration);
/**
* Creates explosion at given coordinates with given power
*
* @param power The power of explosion, where 4F is TNT
* @return false if explosion was canceled, otherwise true
*/
public boolean createExplosion(double x, double y, double z, float power);
/** /**
* Gets the {@link Environment} type of this world * Gets the {@link Environment} type of this world
* *