mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Added World.getName and World.getId
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
f2e2a23693
commit
61f1ef6117
@ -111,4 +111,20 @@ public interface World {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Boat spawnBoat(Location loc);
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user