Class GuiSelectWorld


public class GuiSelectWorld extends GuiScreen
  • Field Details

    • parentScreen

      protected GuiScreen parentScreen
      A reference to the screen object that created this. Used for navigating between screens.
    • screenTitle

      protected String screenTitle
      The title string that is displayed in the top-center of the screen.
  • Constructor Details

    • GuiSelectWorld

      public GuiSelectWorld(GuiScreen par1GuiScreen)
  • Method Details

    • initGui

      public void initGui()
      Adds the buttons (and other controls) to the screen in question.
      Overrides:
      initGui in class GuiScreen
    • getSaveFileName

      protected String getSaveFileName(int par1)
      returns the file name of the specified save number
    • getSaveName

      protected String getSaveName(int par1)
      returns the name of the saved game
    • initButtons

      public void initButtons()
      intilize the buttons for this GUI
    • actionPerformed

      protected void actionPerformed(GuiButton par1GuiButton)
      Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
      Overrides:
      actionPerformed in class GuiScreen
    • selectWorld

      public void selectWorld(int par1)
      Gets the selected world.
    • confirmClicked

      public void confirmClicked(boolean par1, int par2)
      Overrides:
      confirmClicked in class GuiScreen
    • drawScreen

      public void drawScreen(int par1, int par2, float par3)
      Draws the screen and all the components in it.
      Overrides:
      drawScreen in class GuiScreen
    • getDeleteWorldScreen

      public static GuiYesNo getDeleteWorldScreen(GuiScreen par0GuiScreen, String par1Str, int par2)
      Gets a GuiYesNo screen with the warning, buttons, etc.