summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:29:42 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:29:42 +0000
commit574e95926996b923d022b1983e6de7388f2f5f83 (patch)
treed8fef6f9d0401ab49ee03e554f4caf71b8f87ed9 /src/main
parentc3a3c52e9d66c84a28f9490836355413b2a9650a (diff)
downloadbukkit-574e95926996b923d022b1983e6de7388f2f5f83.tar
bukkit-574e95926996b923d022b1983e6de7388f2f5f83.tar.gz
bukkit-574e95926996b923d022b1983e6de7388f2f5f83.tar.lz
bukkit-574e95926996b923d022b1983e6de7388f2f5f83.tar.xz
bukkit-574e95926996b923d022b1983e6de7388f2f5f83.zip
Added World.getName and World.getId
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/World.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index d1deda7c..42226398 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -111,4 +111,20 @@ public interface World {
* @return
*/
public Boat spawnBoat(Location loc);
+
+ /**
+ * Gets the name of this world. This is not guaranteed to be unique.
+ *
+ * @return Name of this world
+ */
+ public String getName();
+
+ /**
+ * Gets a semi-unique identifier for this world. While it is highly unlikely
+ * that this may be shared with another World, it is not guaranteed to be
+ * unique.
+ *
+ * @return Id of this world
+ */
+ public long getId();
}