public void open(int x, int y, int id, GuiPhone guiPhone) { if (x > this.x && y > this.y && x < this.x + 41 && y < this.y + 41) { System.out.println("Clicked mouse with coords: " + x + " ," + y + "!"); IApp app = PhoneRegistry.getAppFromID(appID); app.parent = guiPhone; app.offsetX = guiPhone.phonePosX; app.offsetY = guiPhone.phonePosY; Minecraft.getMinecraft().displayGuiScreen(app); } }