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

Method setType

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

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

(Material type)

Source from the content-addressed store, hash-verified

71 * @param type New type to set the items in this stack to
72 */
73 public void setType(Material type) {
74 setTypeId(type.getId());
75 }
76
77 /**
78 * Gets the type id of this item

Callers

nothing calls this directly

Calls 2

setTypeIdMethod · 0.95
getIdMethod · 0.65

Tested by

no test coverage detected