Deep comparation of 2 instantiated items. Compare ids, metas, custom names and enchantments.
Item a = new Items.Beetroot(); Item b = a.dup; assert(a == b); a.customName = "beetroot"; assert(a != b); b.customName = "beetroot"; a.enchant(Enchantments.protection, "IV"); b.enchant(Enchantments.protection, "IV"); assert(a == b);
See Implementation
Deep comparation of 2 instantiated items. Compare ids, metas, custom names and enchantments.