mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
SPIGOT-3361: Deprecate confusing MaterialData.toItemStack()
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user