Package net.risingworld.api.objects
Class Time
java.lang.Object
net.risingworld.api.objects.Time
Represents the ingame time and date.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDay()
Gets the day of year (1-124).int
getHours()
Gets the hours (0-23)int
Gets the minutes (0-59)int
getMonth()
Deprecated.No longer used.Gets the current moon phase.int
Gets the seconds (0-59)int
int
getYear()
Gets the current year (initial year is 0)
-
Method Details
-
getSeconds
public int getSeconds()Gets the seconds (0-59)- Returns:
- the seconds.
-
getMinutes
public int getMinutes()Gets the minutes (0-59)- Returns:
- the minutes.
-
getHours
public int getHours()Gets the hours (0-23)- Returns:
- the hours.
-
getDay
public int getDay()Gets the day of year (1-124). The game no longer has months, instead a year is separated into 4 seasons (spring, summer, autumn and winter). Each season has 31 days by default, so a year has 124 days (4 * 31).- Returns:
- the day of year.
-
getMonth
Deprecated.No longer used.Gets the month (1-12)- Returns:
- the month.
-
getYear
public int getYear()Gets the current year (initial year is 0)- Returns:
- the year.
-
getTime
-
getMoonPhase
Gets the current moon phase.- Returns:
- the current moon phase.
-