Actually, nevermind, I just found out how to get the params!
For anyone interested, I called the router service, in which there is the params() method.
Like so:
PHP Code:
$router = Services::router();
echo var_dump($router->params());
// array(1) { [0]=> string(1) "1" }