MCPcopy Create free account
hub / github.com/Bukkit/Bukkit / setTypeId

Method setTypeId

src/main/java/org/bukkit/inventory/ItemStack.java:93–96  ·  view source on GitHub ↗

Sets the type id of this item Note that in doing so you will reset the MaterialData for this stack @param type New type id to set the items in this stack to

(int type)

Source from the content-addressed store, hash-verified

91 * @param type New type id to set the items in this stack to
92 */
93 public void setTypeId(int type) {
94 this.type = type;
95 createData((byte) 0);
96 }
97
98 /**
99 * Gets the amount of items in this stack

Callers 1

setTypeMethod · 0.95

Calls 1

createDataMethod · 0.95

Tested by

no test coverage detected