Class WorldClock
java.lang.Object
tk.airshipcraft.commonlib.calendar.clock.WorldClock
This class handles converting real-world time to in-game time and vice versa.
It also handles the progression of in-game time and modifies the passage of in-game time to be slower
so that one hour of real-world time is equivalent to one Minecraft day.
- Since:
- 2024-01-04
- Version:
- 1.5.0
- Author:
- notzune
-
Constructor Summary
ConstructorsConstructorDescriptionWorldClock
(CommonLib plugin, CalendarManager calendarManager, EventManager eventManager) Initializes a new WorldClock. -
Method Summary
-
Constructor Details
-
WorldClock
Initializes a new WorldClock.- Parameters:
plugin
- The plugin instance.calendarManager
- The CalendarManager instance.eventManager
- The EventManager instance.
-
-
Method Details
-
start
public void start()Starts the clock. -
saveState
public void saveState()Saves the state to the file. -
loadState
public void loadState()Loads the state from the file.
-