Class SeasonManager
java.lang.Object
tk.airshipcraft.commonlib.calendar.impl.SeasonManager
- All Implemented Interfaces:
ISeasonManager
The SeasonManager class is responsible for managing seasonal changes in the Minecraft world.
It determines the current season based on the in-game date and provides functionalities to
query the current season. This class plays a crucial role in the calendar system by integrating
seasonal effects with in-game time.
- Since:
- 2023-12-27
- Version:
- 1.0.0
- Author:
- notzune
-
Nested Class Summary
Nested classes/interfaces inherited from interface tk.airshipcraft.commonlib.calendar.ISeasonManager
ISeasonManager.Season
-
Constructor Summary
ConstructorsConstructorDescriptionSeasonManager
(CalendarManager calendarManager) Constructor for SeasonManager that requires a reference to a CalendarManager. -
Method Summary
Modifier and TypeMethodDescriptionDetermines the current season based on the current in-game date.
-
Constructor Details
-
SeasonManager
Constructor for SeasonManager that requires a reference to a CalendarManager.- Parameters:
calendarManager
- The CalendarManager instance to use for date calculations.
-
-
Method Details
-
getCurrentSeason
Determines the current season based on the current in-game date.- Specified by:
getCurrentSeason
in interfaceISeasonManager
- Returns:
- The current season as a
ISeasonManager.Season
enum value.
-