Package net.minecraft.src
Class GuiYesNo
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiYesNo
- Direct Known Subclasses:
GuiConfirmOpenLink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe text shown for the first button in GuiYesNoprotected StringThe text shown for the second button in GuiYesNoprotected StringFirst line of text.protected GuiScreenA reference to the screen object that created this.protected intWorld number to be deleted.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.Methods inherited from class net.minecraft.src.GuiScreen
confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseMovedOrUp, onGuiClosed, setClipboardString, setWorldAndResolution, updateScreenMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Field Details
-
parentScreen
A reference to the screen object that created this. Used for navigating between screens. -
message1
First line of text. -
buttonText1
The text shown for the first button in GuiYesNo -
buttonText2
The text shown for the second button in GuiYesNo -
worldNumber
protected int worldNumberWorld number to be deleted.
-
-
Constructor Details
-
GuiYesNo
-
GuiYesNo
-
-
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
-
drawScreen
public void drawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.- Overrides:
drawScreenin classGuiScreen
-