Add methods to control thunder.

This commit is contained in:
sk89q 2011-04-22 03:12:54 -07:00
parent aaa5278efb
commit 98b331ba86

View File

@ -439,6 +439,34 @@ public interface World {
*/
public void setWeatherDuration(int duration);
/**
* Returns whether there is thunder.
*
* @return Whether there is thunder
*/
public boolean isThundering();
/**
* Set whether it is thundering.
*
* @param thundering Whether it is thundering
*/
public void setThundering(boolean thundering);
/**
* Get the thundering duration.
*
* @return Duration in ticks
*/
public int getThunderDuration();
/**
* Set the thundering duration.
*
* @param duration Duration in ticks
*/
public void setThunderDuration(int duration);
/**
* Gets the {@link Environment} type of this world
*