Class TemperatureSources
java.lang.Object
com.github.thedeathlycow.thermoo.api.core.v2.source.TemperatureSources
Builtin temperature source types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceKey<TemperatureSource> The fallback temperature source.static final net.minecraft.resources.ResourceKey<TemperatureSource> The active source should be used for temperature changes from entity effects such as heat from being on fire, or cold from being submerged in powder snow.static final net.minecraft.resources.ResourceKey<TemperatureSource> Used byServerPlayerEnvironmentTickEventsas the source for temperature changes sourced from the environmental conditions.static final net.minecraft.resources.ResourceKey<TemperatureSource> The Passive source should be used for temperature changes from nearby blocks, such as heat from light sources or cooling from an air conditioner. -
Method Summary
-
Field Details
-
ABSOLUTE
The fallback temperature source. Should be used to apply temperature sources absolutely with no resistance.This temperature source may never be ticked by
LivingEntityTemperatureTickEvents. -
ACTIVE
The active source should be used for temperature changes from entity effects such as heat from being on fire, or cold from being submerged in powder snow. -
PASSIVE
The Passive source should be used for temperature changes from nearby blocks, such as heat from light sources or cooling from an air conditioner. -
ENVIRONMENT
Used byServerPlayerEnvironmentTickEventsas the source for temperature changes sourced from the environmental conditions.This temperature source may never be ticked by
LivingEntityTemperatureTickEvents. Tick-related logic for this source should be exclusively handled throughServerPlayerEnvironmentTickEvents.
-