mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 06:02:12 -07:00
Deprecated Server.createWorld() methods, use "WorldCreator.name(x).seed(1234).createWorld()" now
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user