From 61f1ef61174a4fa2573b14fa0b3e09a407516d1d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 8 Jan 2011 02:29:42 +0000 Subject: [PATCH] Added World.getName and World.getId By: Dinnerbone --- paper-api/src/main/java/org/bukkit/World.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index d1deda7cca..422263989b 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -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(); }