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 Summary
ConstructorsConstructorDescriptionInitialTemperatureChangeResult(TemperatureAware temperatureAware, int initialTemperatureChange, HeatingMode mode) Constructs a result with an initial amount and a mode -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyChange(TemperatureAware affectee, int amount) Applies the temperature change in the mode of the result to the affecteegetMode()voidsetMode(HeatingMode mode) Sets the heating mode of the changeMethods inherited from class com.github.thedeathlycow.thermoo.api.temperature.event.InitialEnvironmentChangeResult
applyInitialChange, getInitialChange, isInitialChangeApplied, onEventComplete, setInitialChange
-
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 toinitialTemperatureChange- The initial temp change to applymode- The mode to apply the temp change in
-
-
Method Details
-
getMode
- Returns:
- Returns the mode of the temperature change
-
setMode
Sets the heating mode of the change- Parameters:
mode- The new mode of the change
-
applyChange
Applies the temperature change in the mode of the result to the affectee- Specified by:
applyChangein classInitialEnvironmentChangeResult<TemperatureAware>- Parameters:
affectee- The affectee of the changeamount- The amount of change to apply
-