private static Minecraft mc = FMLClientHandler.instance().getClient();
public static void openInventoryGui()
{
TabRegistry.mc.thePlayer.sendQueue.addToSendQueue(new C0DPacketCloseWindow(mc.thePlayer.openContainer.windowId));
GuiInventory inventory = new GuiInventory(TabRegistry.mc.thePlayer);
TabRegistry.mc.displayGuiScreen(inventory);
}