MCPcopy Create free account
hub / github.com/Teneted/Tenet / toItemStack

Method toItemStack

src/main/java/org/bukkit/material/MaterialData.java:70–73  ·  view source on GitHub ↗

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).

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected