equalByNamespacedKeyIfExistElseByMaterial

fun equalByNamespacedKeyIfExistElseByMaterial(item1: ItemStack?, item2: ItemStack?): Boolean

Compares by namespaced key when both stacks have one, otherwise falls back to equalByMaterial. Lets custom items and vanilla items be matched uniformly.