From 8c0a750d3e9d747d8c5fcd93bb7e9e7fb6b2ac82 Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Fri, 9 Nov 2012 12:52:55 -0500 Subject: [PATCH] Added getWorldProperties method to WorldManager. --- .../multiverse/core/api/WorldManager.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/base/src/main/java/com/onarandombox/multiverse/core/api/WorldManager.java b/base/src/main/java/com/onarandombox/multiverse/core/api/WorldManager.java index 3e4c3436..3faaca2a 100644 --- a/base/src/main/java/com/onarandombox/multiverse/core/api/WorldManager.java +++ b/base/src/main/java/com/onarandombox/multiverse/core/api/WorldManager.java @@ -5,6 +5,8 @@ import com.onarandombox.multiverse.core.minecraft.Generator; import com.onarandombox.multiverse.core.minecraft.WorldEnvironment; import com.onarandombox.multiverse.core.minecraft.WorldType; +import java.io.IOException; + /** * Multiverse 2 World Manager API *

@@ -13,6 +15,17 @@ import com.onarandombox.multiverse.core.minecraft.WorldType; */ public interface WorldManager { + /** + * Gets an existing WorldProperties object or creates a new one based on the name. + * + * TODO explain that they should use getWorld() in general. + * + * @param worldName The name of the world to get properties for. + * @return The world properties for the given world name. + * @throws IOException In case there are any issues accessing the persistence for the world properties. + */ + WorldProperties getWorldProperties(final String worldName) throws IOException; + /** * Add a new World to the Multiverse Setup. * @@ -145,7 +158,7 @@ public interface WorldManager { * @param name The name or alias of the world to get. * @return A {@link MultiverseWorld} or null. */ - //TODO MultiverseWorld getMVWorld(String name); + //TODO W getMVWorld(String name); /** * Checks to see if the given name is a valid {@link MultiverseWorld}.