Class GuiYesNo

Direct Known Subclasses:
GuiConfirmOpenLink

@Environment(CLIENT) public class GuiYesNo extends GuiScreen
  • Field Details

    • parentScreen

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

      protected String message1
      First line of text.
    • buttonText1

      protected String buttonText1
      The text shown for the first button in GuiYesNo
    • buttonText2

      protected String buttonText2
      The text shown for the second button in GuiYesNo
    • worldNumber

      protected int worldNumber
      World number to be deleted.
  • Constructor Details

  • Method Details

    • initGui

      public void initGui()
      Adds the buttons (and other controls) to the screen in question.
      Overrides:
      initGui in class GuiScreen
    • 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
    • drawScreen

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