getFilter

abstract fun getFilter(itemStack: ItemStack): T?

Reads the ItemFilter from the given itemStack.