package me.deftware.client.framework.Event.Events;

import me.deftware.client.framework.Event.Event;
import net.minecraft.client.gui.GuiDisconnected;
import net.minecraft.client.gui.GuiScreen;

public class EventGuiScreenDraw extends Event {

	private GuiScreen screen;

	public EventGuiScreenDraw(GuiScreen screen) {
		this.screen = screen;
	}

	public boolean instanceOf(CommonScreenTypes type) {
		if (type.equals(CommonScreenTypes.GuiDisconnected)) {
			return screen instanceof GuiDisconnected;
		}
		return false;
	}

	public int getWidth() {
		return screen.width;
	}

	public int getHeight() {
		return screen.height;
	}

	public static enum CommonScreenTypes {
		GuiDisconnected
	}

}

@@ -143,16 +143,63 @@
 nected;%0A
+import net.minecraft.client.gui.GuiIngameMenu;%0A
 import n
@@ -233,16 +233,16 @@
 Screen;%0A
-
 %0Apublic 
@@ -540,16 +540,120 @@
 nected;%0A
+%09%09%7D else if (type.equals(CommonScreenTypes.GuiIngameMenu)) %7B%0A%09%09%09return screen instanceof GuiIngameMenu;%0A
 %09%09%7D%0A%09%09re
@@ -814,16 +814,16 @@
 Types %7B%0A
-
 %09%09GuiDis
@@ -831,15 +831,30 @@
 onnected
+, GuiIngameMenu
 %0A%09%7D%0A%0A%7D%0A

Add GuiIngameMenu to CommonScreenTypes