Class ThermooSeasonEvents

java.lang.Object
com.github.thedeathlycow.thermoo.api.season.ThermooSeasonEvents

public final class ThermooSeasonEvents extends Object
Events related to Seasons in Thermoo. Note that Thermoo will not provide any seasons mod functionality by itself, that must be provided by an external seasons mod. This is primarily intended to be used for mod-agnostic seasons mod integration.
  • Field Details

    • GET_CURRENT_SEASON

      public static final net.fabricmc.fabric.api.event.Event<ThermooSeasonEvents.CurrentSeasonCallback<TemperateSeason>> GET_CURRENT_SEASON
      Retrieves the current temperate season state at a position in a level, 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.

      If any listener returns a non-empty season state, then all further processing is cancelled and that state is returned.

      If the queried position does not have seasons, or a seasons mod is not installed, then returns a state based on the current value of the environment attributes.

      See Also:
    • GET_CURRENT_TROPICAL_SEASON

      public static final net.fabricmc.fabric.api.event.Event<ThermooSeasonEvents.CurrentSeasonCallback<TropicalSeason>> GET_CURRENT_TROPICAL_SEASON
      Retrieves the current tropical season state at a position in a level, 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.

      If any listener returns a non-empty season state, then all further processing is cancelled and that state is returned.

      If the queried position does not have seasons, or a seasons mod is not installed, then returns a state based on the current value of the environment attributes.

      See Also: