season Namespace
This namespace provides information about the current season, if any. If Serene Seasons is installed, this information will reflect the current season defined by Serene Seasons. If Serene Seasons is not installed, the season will always be Spring.
Note
These functions are not available for biome condition scripts.
- Boolean season.isSpring()
Evaluates whether the current season is Spring
- Returns:
trueif it is Spring,falseotherwise.- Return type:
Boolean
- Boolean season.isSummer()
Evaluates whether the current season is Summer
- Returns:
trueif it is Summer,falseotherwise.- Return type:
Boolean
- Boolean season.isAutumn()
Evaluates whether the current season is Autumn
- Returns:
trueif it is Autumn,falseotherwise.- Return type:
Boolean
- Boolean season.isWinter()
Evaluates whether the current season is Winter
- Returns:
trueif it is Winter,falseotherwise.- Return type:
Boolean
- Boolean season.isWarm()
Evaluates whether the current season is considered warm.
- Returns:
Returns
trueif the current season is Spring or Summer,falseotherwise.- Return type:
Boolean
- Boolean season.isCool()
Evaluates whether the current season is considered cool.
- Returns:
Returns
trueif the current season is Autumn or Winter,falseotherwise.- Return type:
Boolean