Added World.getName and World.getId

This commit is contained in:
Dinnerbone 2011-01-08 02:29:42 +00:00
parent c3a3c52e9d
commit 574e959269

View File

@ -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();
}