From fbb5ca1dc675bd9c291b4bc7bb2077808fa55aa5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 22 Apr 2011 03:12:54 -0700 Subject: [PATCH] Add methods to control thunder. By: sk89q --- paper-api/src/main/java/org/bukkit/World.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index ea6d327217..66d7ac109c 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/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