Class ThermooSeasonEvents

java.lang.Object
com.github.thedeathlycow.thermoo.api.season.v2.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 dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, 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 dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, 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:
    • IS_COLD_ENOUGH_TO_SNOW

      public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, ThermooSeasonEvents.ColdEnoughToSnow> IS_COLD_ENOUGH_TO_SNOW

      A season-aware hook for checking if an area can be snowy.

      Snowy checks can be fickle and inconsistent between seasons mods, this provides a single method that will determine if a seasons mod thinks it is cold enough to snow.

      This is not a substitute for vanilla checks! A default return indicates that callers should rely upon vanilla checks instead. It is not defined exactly when this event will return default

      • Returns true if any listener thinks the area is definitely snowy.
      • Returns false if any listener think the area definitely is not snowy.
      • Returns default if no listener believes the area must be snowy or not snowy, and callers should fall back to vanilla processing.