@ThreadSafe public interface WeatherConditions
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRaining()
Checks if it is raining in a world
|
boolean |
isSunny()
Whether or not any weather is occurring within the world
|
boolean |
isThundering()
Checks if it is thundering in a world
|
int |
rainTime()
Gets the number of ticks before raining is toggled
|
void |
setRaining(boolean raining)
Sets raining to the provided boolean
|
void |
setSunny()
Sets the world to sunny, stopping both thundering and raining if present
|
void |
setThundering(boolean thundering)
Sets thundering to the boolean provided
|
int |
thunderTime()
Gets the number of ticks before thundering is toggled
|
void |
toggleRain(int ticks)
Toggles raining within the world
|
void |
toggleThunder(int ticks)
Toggles thundering within the world
|
boolean isRaining()
int rainTime()
void toggleRain(int ticks)
ticks - the ticks until the next rain toggle, or 0 to toggle immediatelyvoid setRaining(boolean raining)
raining - true to start raining, false to stopboolean isThundering()
int thunderTime()
void toggleThunder(int ticks)
ticks - the amount of ticks until the next thunder toggle, 0 to toggle immediatelyvoid setThundering(boolean thundering)
thundering - true to start thundering, false to stopboolean isSunny()
true if no weather is occurring, false if it isvoid setSunny()
Copyright © 2016. All rights reserved.