withAttributeModifier

@Contract(value = "_, _, _ -> new", pure = true)
abstract fun withAttributeModifier(modifier: ItemAttributeModifier): ItemMeta

Creates new item metadata with the given modifier added to the list of modifiers for this item.

Return

new item metadata

Parameters

modifier

the modifier to add