Deprecated Server.createWorld() methods, use "WorldCreator.name(x).seed(1234).createWorld()" now

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-09-25 01:04:43 +01:00
parent b37cc0968a
commit 530662e3b6
3 changed files with 273 additions and 0 deletions

View File

@@ -218,7 +218,9 @@ public interface Server {
* @param name Name of the world to load
* @param environment Environment type of the world
* @return Newly created or loaded World
* @deprecated Use {@link #createWorld(org.bukkit.WorldCreator)}
*/
@Deprecated
public World createWorld(String name, World.Environment environment);
/**
@@ -230,7 +232,9 @@ public interface Server {
* @param environment Environment type of the world
* @param seed Seed value to create the world with
* @return Newly created or loaded World
* @deprecated Use {@link #createWorld(org.bukkit.WorldCreator)}
*/
@Deprecated
public World createWorld(String name, World.Environment environment, long seed);
/**
@@ -242,7 +246,9 @@ public interface Server {
* @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
* @deprecated Use {@link #createWorld(org.bukkit.WorldCreator)}
*/
@Deprecated
public World createWorld(String name, World.Environment environment, ChunkGenerator generator);
/**
@@ -255,9 +261,22 @@ public interface Server {
* @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
* @deprecated Use {@link #createWorld(org.bukkit.WorldCreator)}
*/
@Deprecated
public World createWorld(String name, World.Environment environment, long seed, ChunkGenerator generator);
/**
* Creates or loads a world with the given name using the specified options.
* <p>
* If the world is already loaded, it will just return the equivalent of
* getWorld(creator.name()).
*
* @param options Options to use when creating the world
* @return Newly created or loaded world
*/
public World createWorld(WorldCreator creator);
/**
* Unloads a world with the given name.
*