withAttributeModifier

abstract override fun withAttributeModifier(modifier: ItemAttributeModifier): I

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