mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-3361: Deprecate confusing MaterialData.toItemStack()
This commit is contained in:
parent
68cb4c6197
commit
6751b88aad
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue