findClosestSlot

fun <T : HotbarItemSlot> Iterable<T>.findClosestSlot(item: Item): T?
fun <T : HotbarItemSlot> Iterable<T>.findClosestSlot(itemTag: TagKey<Item>): T?
fun <T : HotbarItemSlot> Iterable<T>.findClosestSlot(vararg items: Item): T?
inline fun <T : HotbarItemSlot> Iterable<T>.findClosestSlot(predicate: (ItemStack) -> Boolean): T?