The Zeeman energy of a magnetic body in an external field is simply given by
Since we know the external field explicitly, we can just simply add it to the other contributions to the effective field.