The mass spectra of all-charm tetraquark states with the [cc][$bar{c}bar{c}$] quark configuration are investigated. The coulomb plus linear potential is used in conjunction with the relativistic mass correction term $mathcal{O}(frac{1}{m})$. To determine the fitting parameters for all-charm tetraquarks states [cc][$bar{c}bar{c}$], we first calculate the mass spectra of charmonia [c$bar{c}$] and its decay constants ($f^{2}_{P/V}$). We estimated the masses of the tetraquark states in their ground and radially excited states. For mass spectra of tetraquark states, we also included spin-spin, spin-orbital, and tensor interactions. The mass spectra of charmonia produced in this study are reasonably consistent with experimental and theoretical predictions made by others, whilst the mass spectra of the tetraquark states are consistent with previous theoretical predictions. We propose that the X(6900) state, which has a mass range of 6.2 - 6.9 GeV and was recently detected by LHCb, has the quantum numbers $0^{-+}$, $1^{-+}$, $2^{-+}$ and belongs to the P-wave of the all-cham tetraquark state.