summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/material/MaterialData.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/material/MaterialData.java b/src/main/java/org/bukkit/material/MaterialData.java
index 9caf085e..29826bc3 100644
--- a/src/main/java/org/bukkit/material/MaterialData.java
+++ b/src/main/java/org/bukkit/material/MaterialData.java
@@ -90,7 +90,10 @@ public class MaterialData implements Cloneable {
* Creates a new ItemStack based on this MaterialData
*
* @return New ItemStack containing a copy of this MaterialData
+ * @deprecated this method creates an ItemStack of size 0 which is not
+ * generally useful. Consider {@link #toItemStack(int)}.
*/
+ @Deprecated
public ItemStack toItemStack() {
return new ItemStack(type, 0, data);
}