Class InitialTemperatureChangeResult

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.event.InitialEnvironmentChangeResult<TemperatureAware>
com.github.thedeathlycow.thermoo.api.temperature.event.InitialTemperatureChangeResult

public class InitialTemperatureChangeResult extends InitialEnvironmentChangeResult<TemperatureAware>
Initial Environment change result implemented for TemperatureAwares
  • Constructor Details

    • InitialTemperatureChangeResult

      public InitialTemperatureChangeResult(TemperatureAware temperatureAware, int initialTemperatureChange, HeatingMode mode)
      Constructs a result with an initial amount and a mode
      Parameters:
      temperatureAware - The temperature aware entity to apply the change to
      initialTemperatureChange - The initial temp change to apply
      mode - The mode to apply the temp change in
  • Method Details

    • getMode

      public HeatingMode getMode()
      Returns:
      Returns the mode of the temperature change
    • setMode

      public void setMode(HeatingMode mode)
      Sets the heating mode of the change
      Parameters:
      mode - The new mode of the change
    • applyChange

      protected void applyChange(TemperatureAware affectee, int amount)
      Applies the temperature change in the mode of the result to the affectee
      Specified by:
      applyChange in class InitialEnvironmentChangeResult<TemperatureAware>
      Parameters:
      affectee - The affectee of the change
      amount - The amount of change to apply