Alcohol was used to sedate? How?

Did they force them to drink it or did they pour wine over the wound in order for the seaman to feel less pain? Wouldn't it be the other way around because of the alcohol?