ItemFilterContainer

Interface for item behaviors that contain an ItemFilter of type T.

Functions

Link copied to clipboard
abstract fun getFilter(itemStack: ItemStack): T?

Reads the ItemFilter from the given itemStack.

Link copied to clipboard
abstract fun setFilter(itemStack: ItemStack, filter: T?)

Stores the given filter in the itemStack.