package me.deftware.client.framework.wrappers.gui;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiMultiplayer;
import net.minecraft.client.gui.GuiOptions;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.GuiWorldSelection;
import net.minecraft.realms.RealmsBridge;

public class IScreens {

	public static enum Screen {
		Multiplayer, WorldSelection, Options
	}

	public static GuiScreen translate(Screen type, IGuiScreen parent) {
		GuiScreen screen = null;
		if (type.equals(Screen.Multiplayer)) {
			screen = new GuiMultiplayer(parent);
		} else if (type.equals(Screen.WorldSelection)) {
			screen = new GuiWorldSelection(parent);
		} else if (type.equals(Screen.Options)) {
			screen = new GuiOptions(parent, Minecraft.getInstance().gameSettings);
		}
		return screen;
	}

	public static void displayGuiScreen(Screen type, IGuiScreen parent) {
		Minecraft.getInstance().displayGuiScreen(IScreens.translate(type, parent));
	}

	public static void switchToRealms(IGuiScreen parent) {
		RealmsBridge realmsbridge = new RealmsBridge();
		realmsbridge.switchToRealms(parent);
	}

}

@@ -120,160 +120,9 @@
 gui.
-GuiMultiplayer;%0Aimport net.minecraft.client.gui.GuiOptions;%0Aimport net.minecraft.client.gui.GuiScreen;%0Aimport net.minecraft.client.gui.GuiWorldSelection
+*
 ;%0Aim
@@ -254,16 +254,26 @@
  Options
+, MainMenu
 %0A%09%7D%0A%0A%09pu
@@ -402,24 +402,24 @@
 iplayer)) %7B%0A
-
 %09%09%09screen = 
@@ -438,32 +438,108 @@
 player(parent);%0A
+%09%09%7D else if (type.equals(Screen.MainMenu)) %7B%0A%09%09%09screen = new GuiMainMenu();%0A
 %09%09%7D else if (typ

Add MainMenu to IScreens