public boolean onRunningTick(ItemStack aStack){
  if (mEUt > 0) {
    addEnergyOutput(((long)mEUt * mEfficiency) / 10000);
    return true;
  }
  if (mEUt < 0) {
    if (!drainEnergyInput(((long)-mEUt * 10000) / Math.max(1000,mEfficiency))) {
      stopMachine();
      return false;
    }
  }
  return true;
}

public boolean onRunningTick ( ItemStack aStack ) { if ( mEUt > 0 ) { addEnergyOutput ( ( ( long ) mEUt * mEfficiency ) / 10000 ) ; return true ; } if ( mEUt < 0 ) { if ( ! drainEnergyInput ( ( ( long ) - mEUt * 10000 ) / Math . max ( 1000 , mEfficiency ) ) ) { stopMachine ( ) ; return false ; } } return true ; }
called every tick the machine runs
