Skip to content

Seasons Integration API

TheDeathlyCow edited this page Nov 12, 2024 · 7 revisions

Thermoo also provides the ability for mods to integrate with Seasons mods. Thermoo does not actually add any functionality around seasons - it just provides mods the ability to handle them if they want. In 1.20.1, Fabric Seasons is supported out of the box with just Thermoo installed. However, for newer versions, you must use Thermoo Patches instead.

Thermoo Seasons

ThermooSeason is a mod-agnostic enum provided by Thermoo to represent the four temperature seasons and the two tropical seasons. The temperate seasons are Spring, Summer, Autumn (or Fall), and Winter. The tropical seasons are wet and dry.

Season Events

  • ThermooSeasonEvents.GET_CURRENT_SEASON - gets the current temperate season (autumn, spring, winter, summer) for the world, or empty if no season mod is available. Mods can use ThermooSeason.getCurrentSeason(World) as a shorthand to invoke this event to query the current season.
  • ThermooSeasonEvents.GET_CURRENT_TROPICAL_SEASON - gets the current tropical season (wet or dry) at the position in the world, or empty if either the queried position is not tropical, or if no tropical season mod is available. Mods can use ThermooSeason.getCurrentTropicalSeason(World, BlockPos) as a shorthand to invoke this event to query the current season.