Use loot tables. You can override EntityLiving::getLootTable and return an appropriate loot table.
Or you can drop your items in any methods that fire on entity's death, like
EntityLivingBase::dropLoot
EntityLivingBase::dropFewItems
or even
EntityLivingBase::onDeath
if you really need to do it there of all places for some mysterious reason