Implements World UID.

By: Rigby <rigby@onarandombox.com>
This commit is contained in:
Bukkit/Spigot
2011-07-05 04:49:03 +01:00
parent 642692f84f
commit 52c737b3c1
2 changed files with 18 additions and 1 deletions

View File

@@ -363,14 +363,23 @@ public interface World {
*/
public String getName();
/**
* Gets the Unique ID of this world
*
* @return Unique ID of this world.
*/
public long getUID();
/**
* 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
*
* @deprecated Replaced with {@link #getUID()}
* @return Id of this world
*/
@Deprecated
public long getId();
/**
@@ -620,7 +629,7 @@ public interface World {
/**
* Sets the spawn flags for this.
*
*
* @param allowMonsters - if true, monsters are allowed to spawn in this world.
* @param allowAnimals - if true, animals are allowed to spawn in this world.
*/