When spoken to by police the defendant, who has previously appeared before the courts, had offered no explanation for his actions.
The victim had to have his clothes cut from him in the ambulance and he sought reparation for one week's lost wages.
Judge O'Dwyer said that she had seriously considered sending Hokianga to jail, however, she decided to give him one last chance to get his life in order.
She sentenced Hokianga to six months' community detention, ordered him to pay $1380 reparation in $20 weekly instalments and imposed a home curfew on Hokianga for set hours each day over seven days a week.
She warned him that should he breach any of his bail conditions he would be going to prison.
"This is your final warning," Judge O'Dwyer said.