diff options
author | sk89q <the.sk89q@gmail.com> | 2011-04-22 02:17:53 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-04-22 02:17:53 -0700 |
commit | aaa5278efbcdd16d9514f1e5e4a6420fac88e32e (patch) | |
tree | 39ed019a1e5e202d8cf3780400428a43c00b8313 /src | |
parent | 95429ad663c208c47c516d307a24846793aa48d7 (diff) | |
download | bukkit-aaa5278efbcdd16d9514f1e5e4a6420fac88e32e.tar bukkit-aaa5278efbcdd16d9514f1e5e4a6420fac88e32e.tar.gz bukkit-aaa5278efbcdd16d9514f1e5e4a6420fac88e32e.tar.lz bukkit-aaa5278efbcdd16d9514f1e5e4a6420fac88e32e.tar.xz bukkit-aaa5278efbcdd16d9514f1e5e4a6420fac88e32e.zip |
Added weather control methods.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/World.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index ab4166ac..ea6d3272 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -409,6 +409,35 @@ public interface World { * @see #setTime(long) Sets the relative time of this world */ public void setFullTime(long time); + + /** + * Returns whether the world has an ongoing storm. + * + * @return Whether there is an ongoing storm + */ + public boolean hasStorm(); + + /** + * Set whether there is a storm. A duration will be set for the new + * current conditions. + * + * @param hasStorm Whether there is rain and snow + */ + public void setStorm(boolean hasStorm); + + /** + * Get the remaining time in ticks of the current conditions. + * + * @return Time in ticks + */ + public int getWeatherDuration(); + + /** + * Set the remaining time in ticks of the current conditions. + * + * @param duration Time in ticks + */ + public void setWeatherDuration(int duration); /** * Gets the {@link Environment} type of this world |