11-02-2011, 01:27 PM
I'm not sure how the server generates terrain, but I'm placing this post here for future reference. 
I actually had the idea of using the Minecraft.jar server file to generate notch's terrain for notch style worlds. MCServer could fire up a fake minecraft.jar instance, tell it to spawn terrain, shut it down, change the spawn location, tell it to generate again and so on. It would be insanely slow and eat a ton of resources (It is a vanilla minecraft server after all), but it could work.
The other option is to make another terrain generator. This would be the cleanest option but I have no clue on how to start. I haven't even looked at the terrain generation code yet.

I actually had the idea of using the Minecraft.jar server file to generate notch's terrain for notch style worlds. MCServer could fire up a fake minecraft.jar instance, tell it to spawn terrain, shut it down, change the spawn location, tell it to generate again and so on. It would be insanely slow and eat a ton of resources (It is a vanilla minecraft server after all), but it could work.
The other option is to make another terrain generator. This would be the cleanest option but I have no clue on how to start. I haven't even looked at the terrain generation code yet.