Which figure of speech is used in this text?
All the joy the world contains
Has come through wishing happiness for others.
All the misery the world contains
Has come through wanting pleasure for oneself.
—Shantideva, The Way of the Bodhisattva

 - understatement
 - antithesis
The text uses antithesis, the contrasting of opposing ideas within a parallel grammatical structure.
Shantideva contrasts two parallel phrases, all the joy the world contains and all the misery the world contains.