Added custom world generator API

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-06-06 13:23:30 +01:00
parent 63a68b3e10
commit 6ad28ba607
8 changed files with 144 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package org.bukkit;
import org.bukkit.generator.ChunkGenerator;
import com.avaje.ebean.config.ServerConfig;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Recipe;
@@ -164,6 +165,31 @@ public interface Server {
*/
public World createWorld(String name, World.Environment environment, long seed);
/**
* Creates or loads a world with the given name.
* If the world is already loaded, it will just return the equivalent of
* getWorld(name)
*
* @param name Name of the world to load
* @param environment Environment type of the world
* @param generator ChunkGenerator to use in the construction of the new world
* @return Newly created or loaded World
*/
public World createWorld(String name, World.Environment environment, ChunkGenerator generator);
/**
* Creates or loads a world with the given name.
* If the world is already loaded, it will just return the equivalent of
* getWorld(name)
*
* @param name Name of the world to load
* @param environment Environment type of the world
* @param seed Seed value to create the world with
* @param generator ChunkGenerator to use in the construction of the new world
* @return Newly created or loaded World
*/
public World createWorld(String name, World.Environment environment, long seed, ChunkGenerator generator);
/**
* Gets the world with the given name
*