Implements World UID.
This commit is contained in:
parent
f83e8295d5
commit
3f2bbab7e6
@ -217,6 +217,14 @@ public interface Server {
|
|||||||
*/
|
*/
|
||||||
public World getWorld(String name);
|
public World getWorld(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the world from the given Unique ID
|
||||||
|
*
|
||||||
|
* @param uid Unique ID of the world to retrieve.
|
||||||
|
* @return World with the given Unique ID, or null if none exists.
|
||||||
|
*/
|
||||||
|
public World getWorld(long uid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reloads the server, refreshing settings and plugin information
|
* Reloads the server, refreshing settings and plugin information
|
||||||
*/
|
*/
|
||||||
|
@ -363,14 +363,23 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public String getName();
|
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.
|
* Gets a semi-unique identifier for this world.
|
||||||
*
|
*
|
||||||
* While it is highly unlikely that this may be shared with another World,
|
* While it is highly unlikely that this may be shared with another World,
|
||||||
* it is not guaranteed to be unique
|
* it is not guaranteed to be unique
|
||||||
*
|
*
|
||||||
|
* @deprecated Replaced with {@link #getUID()}
|
||||||
* @return Id of this world
|
* @return Id of this world
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public long getId();
|
public long getId();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user