diff options
author | md_5 <git@md-5.net> | 2018-07-24 10:17:54 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-24 10:17:54 +1000 |
commit | 971cb0bb3486b2087a9204efb745db4e388ee402 (patch) | |
tree | 130b71a968dd93b1fb4b9fc329cbbabbcb146451 | |
parent | 0f4e33e9c7a5b3fc9912c67265b725db43fc92cb (diff) | |
download | bukkit-971cb0bb3486b2087a9204efb745db4e388ee402.tar bukkit-971cb0bb3486b2087a9204efb745db4e388ee402.tar.gz bukkit-971cb0bb3486b2087a9204efb745db4e388ee402.tar.lz bukkit-971cb0bb3486b2087a9204efb745db4e388ee402.tar.xz bukkit-971cb0bb3486b2087a9204efb745db4e388ee402.zip |
Add map ID API
-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 |