diff options
author | sk89q <the.sk89q@gmail.com> | 2011-04-22 03:12:54 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-04-22 03:12:54 -0700 |
commit | 98b331ba8698847ec8e51f8cf764f470ad79c5dc (patch) | |
tree | bf65221eec0054d33d81018748528f1160939928 | |
parent | aaa5278efbcdd16d9514f1e5e4a6420fac88e32e (diff) | |
download | bukkit-98b331ba8698847ec8e51f8cf764f470ad79c5dc.tar bukkit-98b331ba8698847ec8e51f8cf764f470ad79c5dc.tar.gz bukkit-98b331ba8698847ec8e51f8cf764f470ad79c5dc.tar.lz bukkit-98b331ba8698847ec8e51f8cf764f470ad79c5dc.tar.xz bukkit-98b331ba8698847ec8e51f8cf764f470ad79c5dc.zip |
Add methods to control thunder.
-rw-r--r-- | src/main/java/org/bukkit/World.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index ea6d3272..66d7ac10 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -438,6 +438,34 @@ public interface World { * @param duration Time in ticks */ 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 |