Package net.minecraftforge.client.event
Class GuiOpenEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.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.
-
-
Constructor Summary
Constructors Constructor Description GuiOpenEvent(Screen gui)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Screen
getGui()
void
setGui(Screen gui)
-