It looks like either a chalazion, which is a lipogranuloma of the meibomian gland in the eyelid. In simple terms, it's a cyst caused by a blocked meibomian gland. They look similar to styes, but styes are painful and uncomfortable, chalazia are not. It could also be a true wart, and if it is, it's caused by the papilloma virus. If it's a chalazion it will be smooth in texture, if it's a wart it will be bumpy.