Guest User

thekilleur2

a guest
Jun 17th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. @Override
  2.     public void tickEnd(EnumSet<TickType> type, Object... tickData)
  3.     {
  4.         if(type.equals(EnumSet.of(TickType.CLIENT)))
  5.         {
  6.             Minecraft mc = FMLClientHandler.instance().getClient();
  7.             GuiScreen currentScreen = mc.currentScreen;
  8.             GuiCustomMainMenu customMenu = new GuiCustomMainMenu();
  9.  
  10.             if(currentScreen instanceof GuiMainMenu)
  11.             {
  12.                 mc.displayGuiScreen(customMenu);
  13.             }
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment