public static class GuiScreenEvent.InitGuiEvent extends GuiScreenEvent
Modifier and Type | Class and Description |
---|---|
static class |
GuiScreenEvent.InitGuiEvent.Post
This event fires right after
GuiScreen.initGui() . |
static class |
GuiScreenEvent.InitGuiEvent.Pre
This event fires just after initializing
GuiScreen.mc , GuiScreen.fontRenderer ,
GuiScreen.width , and GuiScreen.height .If canceled the following lines are skipped in GuiScreen.setWorldAndResolution(Minecraft, int, int) :this.buttonList.clear(); this.initGui(); |
GuiScreenEvent.ActionPerformedEvent, GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardInputEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.PotionShiftEvent
Event.HasResult, Event.Result
Constructor and Description |
---|
InitGuiEvent(GuiScreen gui,
java.util.List<GuiButton> buttonList) |
Modifier and Type | Method and Description |
---|---|
java.util.List<GuiButton> |
getButtonList()
The
buttonList field from the GuiScreen object referenced by GuiScreenEvent.gui . |
void |
setButtonList(java.util.List<GuiButton> buttonList) |
getGui
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public java.util.List<GuiButton> getButtonList()
buttonList
field from the GuiScreen object referenced by GuiScreenEvent.gui
.public void setButtonList(java.util.List<GuiButton> buttonList)