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 #toItemStack(int).
()
| 68 | * generally useful. Consider {@link #toItemStack(int)}. |
| 69 | */ |
| 70 | @Deprecated |
| 71 | public ItemStack toItemStack() { |
| 72 | return new ItemStack(type, 0, data); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Creates a new ItemStack based on this MaterialData |
nothing calls this directly
no outgoing calls
no test coverage detected