These three verses come in the form of a personal exhortation. Nephi is here cataloguing the types of temptations he suffers, and exhorts himself to resist them and turn to God in praise.