Package net.minecraft.src
Class GuiSelectWorld
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiSelectWorld
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GuiScreenA reference to the screen object that created this.protected 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.voidconfirmClicked(boolean par1, int par2) voiddrawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.static GuiYesNogetDeleteWorldScreen(GuiScreen par0GuiScreen, String par1Str, int par2) Gets a GuiYesNo screen with the warning, buttons, etc.protected StringgetSaveFileName(int par1) returns the file name of the specified save numberprotected StringgetSaveName(int par1) returns the name of the saved gamevoidintilize the buttons for this GUIvoidinitGui()Adds the buttons (and other controls) to the screen in question.voidselectWorld(int par1) Gets the selected world.Methods inherited from class net.minecraft.src.GuiScreen
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. -
screenTitle
The title string that is displayed in the top-center of the screen.
-
-
Constructor Details
-
GuiSelectWorld
-
-
Method Details
-
initGui
public void initGui()Adds the buttons (and other controls) to the screen in question. -
getSaveFileName
returns the file name of the specified save number -
getSaveName
returns the name of the saved game -
initButtons
public void initButtons()intilize the buttons for this GUI -
actionPerformed
Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).- Overrides:
actionPerformedin classGuiScreen
-
selectWorld
public void selectWorld(int par1) Gets the selected world. -
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
-
getDeleteWorldScreen
Gets a GuiYesNo screen with the warning, buttons, etc.
-