getFirstPartialStack

fun Inventory.getFirstPartialStack(type: ItemStack): @Nullable ItemStack?

Gets the first ItemStack in the Inventory.getStorageContents that is similar to type and not a full stack.