Class WorldTime
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.util.WorldTime
Represents a moment in time in hours and minutes.
-
Constructor Details
-
WorldTime
public WorldTime(int hours, int minutes) Constructs a new WorldTime.- Parameters:
hours- The time in hours.minutes- The time in minutes.
-
WorldTime
public WorldTime(long worldTime) Constructs a new WorldTime.- Parameters:
worldTime- The time in a world in Minecraft time (i.e. 0 to 24000).
-
-
Method Details
-
getHours
public int getHours()Gets the current Minecraft hour.- Returns:
- The current Minecraft hour.
-
getMinutes
public int getMinutes()Gets the number of Minecraft minutes since the last full Minecraft hour.- Returns:
- The number of Minecraft minutes since the last full Minecraft hour.
-
toString
-