A trespasser at a building in north Dublin was so drunk he was "frothing at the mouth" when gardai arrived, a court heard.
Alan Horan (46) was arrested at a centre for people with learning disabilities.
Judge Bryan Smyth adjourned sentencing to a later date at Dublin District Court.
The court heard gardai were called to St Michael's House, Ballymun Road, at 10.30pm on April 11 last after security personnel found the accused.
He was highly intoxicated, was aggressive and abusive and had to be arrested.
He was "frothing at the mouth", but was a different person when he sobered up the prosecuting garda said.
He agreed with Horan's lawyer that the accused had then co-operated with gardai. He had apologised for what happened. The accused, with an address at Kilcronan Court, Bawnogue, Clondalkin, pleaded guilty to trespassing.
The court heard he had six previous convictions for offences including dangerous driving, theft and garda obstruction.
His barrister asked Judge Smyth to defer sentencing, saying there were letters and other documents he wanted to bring to court in mitigation.
The judge agreed and adjourned the case to September. Horan was remanded on continuing bail.