Class EnvironmentHeatingMode

java.lang.Object
com.github.thedeathlycow.thermoo.impl.environment.EnvironmentHeatingMode
All Implemented Interfaces:
HeatingMode

public final class EnvironmentHeatingMode extends Object implements HeatingMode
A heating mode to apply the environment heat resistances. This is currently only used internally by ServerPlayerEnvironmentTickEvents
  • Field Details

  • Method Details

    • applyResistance

      public int applyResistance(TemperatureAware target, int temperatureChange)
      Description copied from interface: HeatingMode
      Applies thermal resistance to a TemperatureAware target
      Specified by:
      applyResistance in interface HeatingMode
      Parameters:
      target - The thermally-aware target
      temperatureChange - The temperature change to apply resistance to
      Returns:
      Returns the adjusted delta after applying resistance.