setFilter

abstract fun setFilter(itemStack: ItemStack, filter: T?)

Stores the given filter in the itemStack.