Package de.steev.bm.changes.env
Class weather
java.lang.Object
weather
handles all weather things
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long
how long thunders are forbidden(package private) static long
last time a thunder has been -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeWeather(org.bukkit.World world)
handles weahterprivate static boolean
isThunder(org.bukkit.World world)
returns if there is a thunderstorm
-
Field Details
-
lastThunder
static long lastThunderlast time a thunder has been -
delay
long delayhow long thunders are forbidden
-
-
Constructor Details
-
weather
public weather()
-
-
Method Details
-
isThunder
private static boolean isThunder(org.bukkit.World world)returns if there is a thunderstorm- Parameters:
world
- the world to check in- Returns:
- boolean if a thunderstorm is active or not
-
changeWeather
public static void changeWeather(org.bukkit.World world)handles weahter- Parameters:
world
- the current world
-