Modify API to take the World's environment as a parameter.

It was supposed to be picking this up from a file, but this probably was never working.