Class TemperatureSources

java.lang.Object
com.github.thedeathlycow.thermoo.api.core.v2.source.TemperatureSources

public final class TemperatureSources extends Object
Builtin temperature source types.
  • Field Details

    • ABSOLUTE

      public static final net.minecraft.resources.ResourceKey<TemperatureSource> 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

      public static final net.minecraft.resources.ResourceKey<TemperatureSource> 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

      public static final net.minecraft.resources.ResourceKey<TemperatureSource> 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

      public static final net.minecraft.resources.ResourceKey<TemperatureSource> ENVIRONMENT
      Used by ServerPlayerEnvironmentTickEvents as 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 through ServerPlayerEnvironmentTickEvents.