Enum Class ThermooSeasons
- All Implemented Interfaces:
Serializable,Comparable<ThermooSeasons>,Constable
Mod-agnostic Seasons enum. Thermoo does not provide seasons itself, but this can be used to better integrate with any
mods that do provide seasons.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ThermooSeasons>getCurrentSeason(net.minecraft.world.World world) Shorthand for invokingThermooSeasonEvents.GET_CURRENT_SEASON.static ThermooSeasonsReturns the enum constant of this class with the specified name.static ThermooSeasons[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPRING
-
SUMMER
-
AUTUMN
-
WINTER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCurrentSeason
Shorthand for invokingThermooSeasonEvents.GET_CURRENT_SEASON.Retrieves the current season, if a season mod is loaded. Thermoo does not add seasons by itself, seasons must be implemented by another mod like Fabric Seasons or Serene Seasons. This event just places season integration into a common source.
- Parameters:
world- The current world / level to get the season from.- Returns:
- Returns the current season if a Seasons mod is installed, or empty if no seasons mod is installed.
-