diff options
-rw-r--r-- | src/main/java/org/bukkit/inventory/meta/MapMeta.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/inventory/meta/MapMeta.java b/src/main/java/org/bukkit/inventory/meta/MapMeta.java index a0e60142..4bf9b392 100644 --- a/src/main/java/org/bukkit/inventory/meta/MapMeta.java +++ b/src/main/java/org/bukkit/inventory/meta/MapMeta.java @@ -8,6 +8,31 @@ import org.bukkit.Color; public interface MapMeta extends ItemMeta { /** + * Checks for existence of a map ID number. + * + * @return true if this has a map ID number. + */ + boolean hasMapId(); + + /** + * Gets the map ID that is set. This is used to determine what map is + * displayed. + * <p> + * Plugins should check that hasMapId() returns <code>true</code> before + * calling this method. + * + * @return the map ID that is set + */ + int getMapId(); + + /** + * Sets the map ID. This is used to determine what map is displayed. + * + * @param id the map id to set + */ + void setMapId(int id); + + /** * Checks to see if this map is scaling. * * @return true if this map is scaling |