Codeine is an opiate painkiller that blocks pain signals from traveling through the central nervous system and alerting the brain.