summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:29:57 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:29:57 +0000
commit603156ea2921094fd657f45be77af7bfa8dcd50f (patch)
tree54ad5bb79b525699eb8b7d9ea9940fd2f8ac0b22 /src/main/java
parent81f920d927eff20579ae476b1faa8ca410e3e9c0 (diff)
downloadcraftbukkit-603156ea2921094fd657f45be77af7bfa8dcd50f.tar
craftbukkit-603156ea2921094fd657f45be77af7bfa8dcd50f.tar.gz
craftbukkit-603156ea2921094fd657f45be77af7bfa8dcd50f.tar.lz
craftbukkit-603156ea2921094fd657f45be77af7bfa8dcd50f.tar.xz
craftbukkit-603156ea2921094fd657f45be77af7bfa8dcd50f.zip
Added World.getName and World.getId
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 3631d132..0edeead3 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -190,6 +190,14 @@ public class CraftWorld implements World {
return world.l(x, y, z);
}
+ public String getName() {
+ return world.w;
+ }
+
+ public long getId() {
+ return world.u;
+ }
+
@Override
public String toString() {
return "CraftWorld";