static class Sky (server-side)
Available since version: 0.2.1
This class represents in game Sky.
Properties
int weather
Represents the sky weather. For more information see Weather constants.
bool raining
Represents the raining/snowing state.
bool renderLightning
Represents the lightning feature during raining state.
Lightning will only be rendered during raining and when weatherWeight is larger than 0.5
float windScale
Represents the sky wind scale used during raining/snowing.
bool dontRain
Represents the sky dontRain feature.
When it's enabled, the rain/snow won't fall.
Methods
setRainStartTime
This method will set the sky weather time when it starts raining/snowing.
void setRainStartTime(int hour, int min)
Parameters:
inthour: the sky weather raining start hour.intmin: the sky weather raining start min.
getRainStartTime
This method will get the sky weather time when it starts raining/snowing.
{hour, min} getRainStartTime()
Returns {hour, min}:
the sky weather raining start time.
setRainStopTime
This method will set the sky weather time when it stops raining/snowing.
void setRainStopTime(int hour, int min)
Parameters:
inthour: the sky weather raining stop hour.intmin: the sky weather raining stop min.
getRainStopTime
This method will get the sky weather time when it stops raining/snowing.
{hour, min} getRainStopTime()
Returns {hour, min}:
the sky weather raining stop time.
Callbacks
No callbacks.