setItemMeta

public boolean setItemMeta(ItemMeta itemMeta)

Set the ItemMeta of this ItemStack.

Return

True if successfully applied ItemMeta, see isApplicable

Parameters

itemMeta

new ItemMeta, or null to indicate meta data be cleared.

Throws

if the item meta was not created by the ItemFactory