Class Time
java.lang.Object
net.risingworld.api.objects.Time
Represents the ingame time and date.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
DAYS_PER_SEASON
public static final int DAYS_PER_SEASON- See Also:
-
DAYS_PER_YEAR
public static final int DAYS_PER_YEAR- See Also:
-
-
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.
-
getYear
public int getYear()Gets the current year (initial year is 0)- Returns:
- the year.
-
getTime
-
getMoonPhase
-