Gets the tool's material if the item is a tool. Items with ID 0 have unspecified material, 1 is the minimum (wood) and 5 is the maximum (diamond).
assert(new Items.Beetroot().toolMaterial == NO_TOOL); assert(new Items.DiamondSword().toolMaterial == DIAMOND);
See Implementation
Gets the tool's material if the item is a tool. Items with ID 0 have unspecified material, 1 is the minimum (wood) and 5 is the maximum (diamond).