Green’s Dictionary of Slang

candy adj.1

[ety. unknown; ? link to SE can, a container for liquids]

[mid-18C–early 19C] (mainly Anglo-Irish) drunk.