public class InvTweaksModCompatibility {
    
    private static InvTweaksModCompatibility instance = null;
    
    private InvTweaksModCompatibility() {
        
    }
    
    public static InvTweaksModCompatibility getInstance() {
        if (instance == null) {
            instance = new InvTweaksModCompatibility();
        }
        return instance;
    }
    
    /**
     * Returns true if the container is a chest/dispenser,
     * despite not being a GuiChest or a GuiDispenser.
     * @param guiContainer
     * @return
     */
    public boolean isSpecialChest(em guiContainer) {
        return is(guiContainer, "GuiAlchest"); // Equivalent Exchange
    }

    /**
     * Returns a special chest row size.
     * Given guiContainer must be checked first with isSpecialChest().
     * @param guiContainer
     * @param defaultValue
     * @return
     */
    public int getSpecialChestRowSize(em guiContainer, int defaultValue) {
        if (is(guiContainer, "GuiAlchest")) { // Equivalent Exchange
            return 13;
        }
        return defaultValue;
    }
    
    /**
     * Returns true if the container is the inventory screen,
     * despite not being a GuiInventory.
     * @param guiContainer
     * @return
     */
    public boolean isSpecialInventory(em guiContainer) {
        return is(guiContainer, "GuiInventoryMoreSlots"); // Aether mod
    }

    /**
     * Returns true if the guiScreen is a GuiChest or a GuiDispenser
     * but should not be handled for sorting/shortcuts.
     * @param guiContainer
     * @return
     */
    public boolean isForbiddenChest(em guiContainer) {
        return is(guiContainer, "MLGuiChestBuilding"); // Millenaire mod
    }
    
    private static final boolean is(em guiContainer, String className) {
        return guiContainer.getClass().getSimpleName().contains(className);
    }


}

@@ -654,17 +654,16 @@
 lchest%22)
-;
  // Equi
@@ -675,24 +675,143 @@
 t Exchange%0D%0A
+          %7C%7C is(guiContainer, %22GuiDiamondChest%22)%0D%0A          %7C%7C is(guiContainer, %22GuiGoldChest%22); // Iron chests (IC2)%0D%0A
     %7D%0D%0A%0D%0A   
@@ -1181,16 +1181,188 @@
 rn 13;%0D%0A
+        %7D else if (is(guiContainer, %22GuiDiamondChest%22)) %7B //Iron chests%0D%0A          return 12;%0D%0A        %7D else if (is(guiContainer, %22GuiGoldChest%22)) %7B%0D%0A          return 9;%0D%0A
         

Support for IronChests IC2 mod