Implements a World UID.

This commit is contained in:
Rigby
2011-07-05 04:48:27 +01:00
committed by EvilSeph
parent 5515ce1ff6
commit 9ced39421f
4 changed files with 42 additions and 3 deletions

View File

@@ -395,10 +395,15 @@ public class CraftWorld implements World {
return world.worldData.name;
}
@Deprecated
public long getId() {
return world.worldData.getSeed();
}
public long getUID() {
return world.worldData.getWorldUID();
}
@Override
public String toString() {
return "CraftWorld{name=" + getName() + '}';