From 598a09dceeb23b8b076b5b30ce88ef4c5e4feeec Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 31 Mar 2011 21:46:05 +0100 Subject: [PATCH] Can now create worlds with specific seeds By: Dinnerbone --- paper-api/src/main/java/org/bukkit/Server.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index b74d3a4534..b9cdbd820b 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -133,6 +133,18 @@ public interface Server { */ public World createWorld(String name, World.Environment environment); + /** + * 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 + * @return Newly created or loaded World + */ + public World createWorld(String name, World.Environment environment, long seed); + /** * Gets the world with the given name *