Class GuiOpenEvent


  • public class GuiOpenEvent
    extends net.minecraftforge.eventbus.api.Event
    This event is called before any Gui will open. If you don't want this to happen, cancel the event. If you want to override this Gui, simply set the gui variable to your own Gui.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

        net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Screen gui  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Screen getGui()  
      void setGui​(Screen gui)  
      • Methods inherited from class net.minecraftforge.eventbus.api.Event

        getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GuiOpenEvent

        public GuiOpenEvent​(Screen gui)
    • Method Detail

      • getGui

        public Screen getGui()
      • setGui

        public void setGui​(Screen gui)