Package net.minecraft.src
Class GuiMainMenu
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiMainMenu
-
Field Summary
FieldsFields inherited from class net.minecraft.src.GuiScreen
allowUserInput, buttonList, fontRenderer, height, mc, widthFields inherited from class net.minecraft.src.Gui
icons, optionsBackground, statIcons, zLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactionPerformed(GuiButton par1GuiButton) Fired when a control is clicked.voidconfirmClicked(boolean par1, int par2) booleanReturns true if this GUI should pause the game when it is displayed in single-playervoiddrawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.voidinitGui()Adds the buttons (and other controls) to the screen in question.protected voidkeyTyped(char par1, int par2) Fired when a key is typed.protected voidmouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.voidCalled from the main game loop to update the screen.Methods inherited from class net.minecraft.src.GuiScreen
drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, mouseClickMove, mouseMovedOrUp, onGuiClosed, setClipboardString, setWorldAndResolutionMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Field Details
-
field_96138_a
-
-
Constructor Details
-
GuiMainMenu
public GuiMainMenu()
-
-
Method Details
-
updateScreen
public void updateScreen()Called from the main game loop to update the screen.- Overrides:
updateScreenin classGuiScreen
-
doesGuiPauseGame
public boolean doesGuiPauseGame()Returns true if this GUI should pause the game when it is displayed in single-player- Overrides:
doesGuiPauseGamein classGuiScreen
-
keyTyped
protected void keyTyped(char par1, int par2) Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). -
initGui
public void initGui()Adds the buttons (and other controls) to the screen in question. -
actionPerformed
Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).- Overrides:
actionPerformedin classGuiScreen
-
confirmClicked
public void confirmClicked(boolean par1, int par2) - Overrides:
confirmClickedin classGuiScreen
-
drawScreen
public void drawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.- Overrides:
drawScreenin classGuiScreen
-
mouseClicked
protected void mouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.- Overrides:
mouseClickedin classGuiScreen
-