public class ClimateManipulator extends java.lang.Object implements IClimateManipulator
| Modifier and Type | Class and Description |
|---|---|
static class |
ClimateManipulator.Builder |
| Modifier and Type | Method and Description |
|---|---|
IClimateState |
addChange(boolean simulated)
Tries to add the change value to the current state of this transformer.
|
boolean |
allowsBackwards() |
boolean |
canAdd() |
void |
finish()
Calls the
Consumer that was set with IClimateManipulatorBuilder.setOnFinish(Consumer). |
IClimateState |
getCurrent() |
IClimateState |
getDefault() |
IClimateState |
getStart() |
IClimateState |
getTarget() |
ClimateType |
getType() |
IClimateState |
removeChange(boolean simulated)
Tries to remove the change value from the current state of this transformer.
|
public IClimateState getCurrent()
getCurrent in interface IClimateManipulatorpublic IClimateState getStart()
getStart in interface IClimateManipulatorIClimateManipulatorBuilder.setCurrent(IClimateState).public IClimateState getTarget()
getTarget in interface IClimateManipulatorIClimateManipulatorBuilder.setTarget(IClimateState).public boolean allowsBackwards()
allowsBackwards in interface IClimateManipulatorFunction that as set with IClimateManipulatorBuilder.setChangeSupplier(BiFunction)).public IClimateState getDefault()
getDefault in interface IClimateManipulatorIClimateManipulatorBuilder.setDefault(IClimateState) (IClimateState)}.public ClimateType getType()
getType in interface IClimateManipulatorpublic void finish()
IClimateManipulatorConsumer that was set with IClimateManipulatorBuilder.setOnFinish(Consumer).finish in interface IClimateManipulatorpublic IClimateState addChange(boolean simulated)
IClimateManipulatoraddChange in interface IClimateManipulatorsimulated - If the add should only be simulated.public IClimateState removeChange(boolean simulated)
IClimateManipulatorremoveChange in interface IClimateManipulatorsimulated - If the remove should only be simulated.public boolean canAdd()
canAdd in interface IClimateManipulator