public int getMapCount(int arg0, int arg1, int arg2) {
        int id = (arg2 << 8) + arg1;
        for (int i = 0; i < mapIndices1.length; i++) {
            if (mapIndices1[i] == id) {
                if (arg0 == 0) {
                    return mapIndices2[i];
                } else {
                    return mapIndices3[i];
                }
            }
        }
        return -1;
    }