Class GuiAchievements


public class GuiAchievements extends GuiScreen
  • Field Details

    • achievementsPaneWidth

      protected int achievementsPaneWidth
    • achievementsPaneHeight

      protected int achievementsPaneHeight
    • mouseX

      protected int mouseX
      The current mouse x coordinate
    • mouseY

      protected int mouseY
      The current mouse y coordinate
    • field_74117_m

      protected double field_74117_m
    • field_74115_n

      protected double field_74115_n
    • guiMapX

      protected double guiMapX
      The x position of the achievement map
    • guiMapY

      protected double guiMapY
      The y position of the achievement map
    • field_74124_q

      protected double field_74124_q
    • field_74123_r

      protected double field_74123_r
  • Constructor Details

    • GuiAchievements

      public GuiAchievements(StatFileWriter par1StatFileWriter)
  • 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 button)
      Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
      Overrides:
      actionPerformed in class GuiScreen
    • keyTyped

      protected void keyTyped(char par1, int par2)
      Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).
      Overrides:
      keyTyped in class GuiScreen
    • drawScreen

      public void drawScreen(int mouseX, int mouseY, float partialTicks)
      Draws the screen and all the components in it.
      Overrides:
      drawScreen in class GuiScreen
    • updateScreen

      public void updateScreen()
      Called from the main game loop to update the screen.
      Overrides:
      updateScreen in class GuiScreen
    • drawTitle

      protected void drawTitle()
      Draws the "Achievements" title at the top of the GUI.
    • genAchievementBackground

      protected void genAchievementBackground(int mouseX, int mouseY, float par3)
    • genAchievementTabBackground

      protected void genAchievementTabBackground(AchievementTab tab, int windowX, int windowY)
    • drawAchievementConnections

      protected void drawAchievementConnections(AchievementTab tab, int windowX, int windowY)
    • renderAchievements

      protected Achievement renderAchievements(AchievementTab tab, int windowX, int windowY, int mouseX, int mouseY)
    • renderFrame

      protected void renderFrame(AchievementTab tab, float par3)
    • renderHoveredAchievement

      protected void renderHoveredAchievement(Achievement achievementHovered, int mouseX, int mouseY)
    • doesGuiPauseGame

      public boolean doesGuiPauseGame()
      Returns true if this GUI should pause the game when it is displayed in single-player
      Overrides:
      doesGuiPauseGame in class GuiScreen
    • renderAchievementTab

      protected void renderAchievementTab(AchievementTab tab)
      Renders passed achievement tab into the screen.
    • renderPageButtons

      protected void renderPageButtons(int mouseX, int mouseY)
      Renders achievement page buttons into the screen.
    • mouseMovedOrUp

      protected void mouseMovedOrUp(int mouseX, int mouseY, int state)
      Called when the mouse is moved or a mouse button is released. Signature: (mouseX, mouseY, state) state==-1 is mouseMove, state==0 or state==1 is mouseUp
      Overrides:
      mouseMovedOrUp in class GuiScreen
    • handleMouseInput

      public void handleMouseInput()
      Handles mouse input.
      Overrides:
      handleMouseInput in class GuiScreen
    • isMouseOverTab

      protected boolean isMouseOverTab(AchievementTab tab, int mouseX, int mouseY)
    • isMouseOverLeftButton

      protected boolean isMouseOverLeftButton(int mouseX, int mouseY)
    • isMouseOverRightButton

      protected boolean isMouseOverRightButton(int mouseX, int mouseY)