net.minecraftforge.client.event

## Class GuiOpenEvent

- java.lang.Object
- - net.minecraftforge.event.Event
  - - net.minecraftforge.client.event.GuiOpenEvent

-     public class GuiOpenEvent
      extends 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.
  Author:
    jk-5

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class net.minecraftforge.event.Event

      `Event.HasResult, Event.Result`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `GuiScreen` | `gui`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GuiOpenEvent(GuiScreen gui)`

  - ### Method Summary

    - ### Methods inherited from class net.minecraftforge.event.Event

      `getListenerList, getResult, hasResult, isCancelable, isCanceled, setCanceled, setResult`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### gui

          public GuiScreen gui

  - ### Constructor Detail

    - #### GuiOpenEvent

          public GuiOpenEvent(GuiScreen gui)