}
NBTTagCompound tagA = (NBTTagCompound)a.getTagCompound().copy(),
tagB = (NBTTagCompound)b.getTagCompound().copy();
tagA.removeTag("display"); tagB.removeTag("display");
tagA.removeTag("ench"); tagB.removeTag("ench");
tagA.removeTag("RepairCost"); tagB.removeTag("RepairCost");
return tagA.equals(tagB);
}
//assumes a 3x3 grid in inventory slots 0-8
//slot 0 is northwest, slot 2 is northeast, etc