Interface ICalendarManager
- All Known Implementing Classes:
CalendarManager
public interface ICalendarManager
Interface for managing the in-game calendar in Minecraft.
- Since:
- 2024-01-04
- Version:
- 2.0.0
- Author:
- notzune
-
Method Summary
Modifier and TypeMethodDescriptionvoidadvanceDays(int days) Advances the calendar by a specified number of days.intdaysUntil(CustomDate date) Returns the number of days until the specified date.Gets the current in-game date.voidAdvances the calendar by one day.voidsetCurrentDate(CustomDate newDate) Sets the current in-game date.
-
Method Details
-
newMinecraftDay
void newMinecraftDay()Advances the calendar by one day. -
getCurrentDate
CustomDate getCurrentDate()Gets the current in-game date.- Returns:
- The current in-game date.
-
setCurrentDate
Sets the current in-game date.- Parameters:
newDate- The new in-game date.
-
advanceDays
void advanceDays(int days) Advances the calendar by a specified number of days.- Parameters:
days- The number of days to advance the calendar.
-
daysUntil
Returns the number of days until the specified date.- Parameters:
date- The date to calculate the number of days until.- Returns:
- The number of days until the specified date.
-