A 38-year-old Roseville man faces a stipulated sentence of 19 years and four months in a state prison for incidents in 2009 that included an assault with a firearm and making a terrorist threat.

Mathew C. Hubbard of Roseville entered a plea of guilty Monday in Placer County Superior Court to the two felony counts and also admitted to allegations of committing a hate crime in the assault case and to having been convicted of previous felonies.

Prosecutor Stephanie Macumber of the Placer County District Attorney’s Office said the defendant entered the pleas and admitted the special allegations on the day his case was scheduled to begin trial.

In one of the incidents in July 2009, Hubbard threatened another person with a knife. In a separate case a month later, Hubbard pointed a rifle at an African American man and made racial taunts.

Superior Court Judge Mark S Curry set the sentencing date for December 17.