summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-11-23 11:50:32 +1100
committermd_5 <git@md-5.net>2018-11-23 11:50:32 +1100
commit7137829e0d029c4076dee343a66180633b2f67e2 (patch)
tree06550d89c37e1e8b059004f2bfa33307ce7d7cd6
parentde33ade0af5ef624a69fb190a9910174d359184f (diff)
downloadbukkit-7137829e0d029c4076dee343a66180633b2f67e2.tar
bukkit-7137829e0d029c4076dee343a66180633b2f67e2.tar.gz
bukkit-7137829e0d029c4076dee343a66180633b2f67e2.tar.lz
bukkit-7137829e0d029c4076dee343a66180633b2f67e2.tar.xz
bukkit-7137829e0d029c4076dee343a66180633b2f67e2.zip
SPIGOT-4496: Undeprecate MapView.getId and make int
-rw-r--r--src/main/java/org/bukkit/map/MapView.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/map/MapView.java b/src/main/java/org/bukkit/map/MapView.java
index 18a9936f..e152d076 100644
--- a/src/main/java/org/bukkit/map/MapView.java
+++ b/src/main/java/org/bukkit/map/MapView.java
@@ -2,6 +2,7 @@ package org.bukkit.map;
import java.util.List;
import org.bukkit.World;
+import org.bukkit.inventory.meta.MapMeta;
/**
* Represents a map item.
@@ -56,14 +57,11 @@ public interface MapView {
}
/**
- * Get the ID of this map item. Corresponds to the damage value of a map
- * in an inventory.
+ * Get the ID of this map item for use with {@link MapMeta}.
*
* @return The ID of the map.
- * @deprecated Magic value
*/
- @Deprecated
- public short getId();
+ public int getId();
/**
* Check whether this map is virtual. A map is virtual if its lowermost