use of forestry.greenhouse.api.climate.IClimateSourceCircuitable in project ForestryMC by ForestryMC.
the class CircuitClimateSource method onRemoval.
@Override
public void onRemoval(int slot, Object tile) {
IClimateSourceOwner owner = getCircuitable(tile);
if (owner == null) {
return;
}
IClimateSource source = owner.getClimateSource();
if (!(source instanceof IClimateSourceCircuitable)) {
return;
}
((IClimateSourceCircuitable) source).changeSourceConfig(type, -changeChange, -rangeChange, -energyChange);
}
use of forestry.greenhouse.api.climate.IClimateSourceCircuitable in project ForestryMC by ForestryMC.
the class CircuitClimateSource method onInsertion.
@Override
public void onInsertion(int slot, Object tile) {
IClimateSourceOwner owner = getCircuitable(tile);
if (owner == null) {
return;
}
IClimateSource source = owner.getClimateSource();
if (!(source instanceof IClimateSourceCircuitable)) {
return;
}
((IClimateSourceCircuitable) source).changeSourceConfig(type, changeChange, rangeChange, energyChange);
}
Aggregations