Class ThermooSeasonEvents
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, ThermooSeasonEvents.CurrentSeasonCallback<TemperateSeason>> Retrieves the current temperate season state at a position in a level, if a season mod is loaded.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, ThermooSeasonEvents.CurrentSeasonCallback<TropicalSeason>> Retrieves the current tropical season state at a position in a level, if a season mod is loaded.static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, ThermooSeasonEvents.ColdEnoughToSnow> A season-aware hook for checking if an area can be snowy. -
Method Summary
-
Field Details
-
GET_CURRENT_SEASON
public static final dev.yumi.commons.event.Event<net.minecraft.resources.Identifier, ThermooSeasonEvents.CurrentSeasonCallback<TemperateSeason>> GET_CURRENT_SEASONRetrieves 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_SEASONRetrieves 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_SNOWA 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.
-