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