Esempio n. 1
0
 /**
  * Event fired before a GUI is opened.
  *
  * @param event
  */
 @SubscribeEvent
 public void GuiOpenEvent(GuiOpenEvent event) {
   // override the default Options screen with our custom one, which contains our custom "Zyin's
   // HUD..." button
   if (event.gui instanceof GuiOptions && mc.theWorld != null) {
     event.gui = new GuiOptionsOverride(new GuiIngameMenu(), mc.gameSettings);
   }
 }
Esempio n. 2
0
 @SubscribeEvent
 public void onGuiOpen(GuiOpenEvent event) {
   if (event.gui instanceof GuiMainMenu) {
     event.gui = new GuiRewiMainMenu();
   }
 }