Package net.minecraft.src
Class GuiAchievements
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiAchievements
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleThe x position of the achievement mapprotected doubleThe y position of the achievement mapprotected intThe current mouse x coordinateprotected intThe current mouse y coordinateFields 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 button) Fired when a control is clicked.booleanReturns true if this GUI should pause the game when it is displayed in single-playerprotected voiddrawAchievementConnections(AchievementTab tab, int windowX, int windowY) voiddrawScreen(int mouseX, int mouseY, float partialTicks) Draws the screen and all the components in it.protected voidDraws the "Achievements" title at the top of the GUI.protected voidgenAchievementBackground(int mouseX, int mouseY, float par3) protected voidgenAchievementTabBackground(AchievementTab tab, int windowX, int windowY) voidHandles mouse input.voidinitGui()Adds the buttons (and other controls) to the screen in question.protected booleanisMouseOverLeftButton(int mouseX, int mouseY) protected booleanisMouseOverRightButton(int mouseX, int mouseY) protected booleanisMouseOverTab(AchievementTab tab, int mouseX, int mouseY) protected voidkeyTyped(char par1, int par2) Fired when a key is typed.protected voidmouseMovedOrUp(int mouseX, int mouseY, int state) Called when the mouse is moved or a mouse button is released.protected AchievementrenderAchievements(AchievementTab tab, int windowX, int windowY, int mouseX, int mouseY) protected voidRenders passed achievement tab into the screen.protected voidrenderFrame(AchievementTab tab, float par3) protected voidrenderHoveredAchievement(Achievement achievementHovered, int mouseX, int mouseY) protected voidrenderPageButtons(int mouseX, int mouseY) Renders achievement page buttons into the screen.voidCalled from the main game loop to update the screen.Methods inherited from class net.minecraft.src.GuiScreen
confirmClicked, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, isCtrlKeyDown, isShiftKeyDown, mouseClicked, mouseClickMove, onGuiClosed, setClipboardString, setWorldAndResolutionMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Field Details
-
achievementsPaneWidth
protected int achievementsPaneWidth -
achievementsPaneHeight
protected int achievementsPaneHeight -
mouseX
protected int mouseXThe current mouse x coordinate -
mouseY
protected int mouseYThe current mouse y coordinate -
field_74117_m
protected double field_74117_m -
field_74115_n
protected double field_74115_n -
guiMapX
protected double guiMapXThe x position of the achievement map -
guiMapY
protected double guiMapYThe 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
-
-
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
-
keyTyped
protected void keyTyped(char par1, int par2) Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). -
drawScreen
public void drawScreen(int mouseX, int mouseY, float partialTicks) Draws the screen and all the components in it.- Overrides:
drawScreenin classGuiScreen
-
updateScreen
public void updateScreen()Called from the main game loop to update the screen.- Overrides:
updateScreenin classGuiScreen
-
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
-
drawAchievementConnections
-
renderAchievements
protected Achievement renderAchievements(AchievementTab tab, int windowX, int windowY, int mouseX, int mouseY) -
renderFrame
-
renderHoveredAchievement
-
doesGuiPauseGame
public boolean doesGuiPauseGame()Returns true if this GUI should pause the game when it is displayed in single-player- Overrides:
doesGuiPauseGamein classGuiScreen
-
renderAchievementTab
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:
mouseMovedOrUpin classGuiScreen
-
handleMouseInput
public void handleMouseInput()Handles mouse input.- Overrides:
handleMouseInputin classGuiScreen
-
isMouseOverTab
-
isMouseOverLeftButton
protected boolean isMouseOverLeftButton(int mouseX, int mouseY) -
isMouseOverRightButton
protected boolean isMouseOverRightButton(int mouseX, int mouseY)
-