Item.clear

Removes the custom behaviours of the item, like custom name and enchantments.

class Item
@trusted
void
clear
()

Examples

item.customName = "name";
assert(item.customName == "name");
item.clear();
assert(item.customName == "");

Meta