.collect(Collectors.toList());if(enchantedBooks.isEmpty())returnnull;for(ItemStack inputStack :newItemStackHandlerIterable(inputStacks)) {if((inputStack.isItemEnchantable() || inputStack.isItemEnchanted()) && inputStack.getItem() != Items.ENCHANTED_BOOK) {for(ItemStack enchantedBook : enchantedB...