Package net.minecraft.src
Class GuiControls
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiControls
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe title string that is displayed in the top-center of the screen.Fields 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.voiddrawScreen(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.Methods inherited from class net.minecraft.src.GuiScreen
confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, mouseClickMove, mouseMovedOrUp, onGuiClosed, setClipboardString, setWorldAndResolution, updateScreenMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Field Details
-
screenTitle
The title string that is displayed in the top-center of the screen.
-
-
Constructor Details
-
GuiControls
-
-
Method Details
-
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
-
mouseClicked
protected void mouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.- Overrides:
mouseClickedin classGuiScreen
-
keyTyped
protected void keyTyped(char par1, int par2) Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). -
drawScreen
public void drawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.- Overrides:
drawScreenin classGuiScreen
-