Gary Franks damaged a police car and other vehicles in the street as he refused to come of the house.
-> Teenage terror suspect faces court accused of making explosive substanceLeeds Crown Court heard police had to force their way into the property to get a five-year-old boy who was asleep inside.
Robert Yates, prosecuting said police were called to Third Avenue, Rothwell, on August 9 this year.
Mr Yates said Franks had locked his partner out of the house when she went to put the bin out.
Franks spoke to officers through the bathroom window when they arrived.
They told him they were not going to arrest him as long as he left the house and "offered him a lift".
-> Parvo warning: The Leeds areas where fatal dog disease Parvovirus has been foundFranks, who had been drinking and taking cocaine, refused to leave and climbed up on to the roof.
He refused to come down despite the efforts of a police negotiator.
Officers had to use shields to protect themselves as Franks threw loose tiles.
Mr Yates said police went into the house to get the youngster who slept through the incident.
Police arranged for Franks's partner to come to the scene to try to pursuade him to come down but he refused.
The 31-year-old gave himself up when his mother arrived and spoke to him.
Franks demanded a cigarette which he smoked before coming down.
-> These nine curry houses have been named the best in YorkshireA total of £5,000 worth of damage was caused during the incident.
Franks pleaded guilty to affray and three offences of criminal damage.
He has 32 previous convictions including violence and anti-social behaviour offences.
Conor Quinn, mitigating, said Franks accepted that he would be facing a prison sentence.
Mr Quinn added: "He wasn't aiming the tiles at anyone.
"He was simply drunk and reckless."
Franks was jailed for 19 months.
Recorder Richard Woolfall said: "This incident would have been watched by many residents concerned for their own property and their own safety."