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.children.clear();this.initGui(); |
GuiScreenEvent.ActionPerformedEvent, GuiScreenEvent.BackgroundDrawnEvent, GuiScreenEvent.DrawScreenEvent, GuiScreenEvent.InitGuiEvent, GuiScreenEvent.KeyboardCharTypedEvent, GuiScreenEvent.KeyboardKeyEvent, GuiScreenEvent.KeyboardKeyPressedEvent, GuiScreenEvent.KeyboardKeyReleasedEvent, GuiScreenEvent.MouseClickedEvent, GuiScreenEvent.MouseDragEvent, GuiScreenEvent.MouseInputEvent, GuiScreenEvent.MouseReleasedEvent, GuiScreenEvent.MouseScrollEvent, GuiScreenEvent.PotionShiftEvent| Constructor and Description |
|---|
InitGuiEvent(GuiScreen gui,
java.util.List<GuiButton> buttonList,
java.util.function.Consumer<GuiButton> addButton,
java.util.function.Consumer<GuiButton> removeButton) |
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(GuiButton button) |
java.util.List<GuiButton> |
getButtonList()
Unmodifiable reference to the list of buttons on the
GuiScreenEvent.gui. |
void |
removeButton(GuiButton button) |
getGuipublic java.util.List<GuiButton> getButtonList()
GuiScreenEvent.gui.public void addButton(GuiButton button)
public void removeButton(GuiButton button)