public static int getInverseTransfType(int type){
        int inverse = 0;
        switch (type){
            case 0: inverse = 0;
                break;
            case 1: inverse = 3;
                break;
            case 2: inverse = 2;
                break;
            case 3: inverse = 1;
                break;
            case 4: inverse = 4;
                break;
            case 5: inverse = 5;
                break;
            case 6: inverse = 6;
                break;
            case 7: inverse = 7;
                break;
        }
        return inverse;
    }