Package net.minecraft.src
Class GuiMerchant
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiContainer
net.minecraft.src.GuiMerchant
-
Field Summary
Fields inherited from class net.minecraft.src.GuiContainer
field_110408_a, field_94076_q, field_94077_p, guiLeft, guiTop, inventorySlots, itemRenderer, xSize, ySizeFields 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
ConstructorsConstructorDescriptionGuiMerchant(InventoryPlayer par1InventoryPlayer, IMerchant par2IMerchant, World par3World, String par4Str) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactionPerformed(GuiButton button) Fired when a control is clicked.protected voiddrawGuiContainerBackgroundLayer(float par1, int par2, int par3) Draw the background layer for the GuiContainer (everything behind the items)protected voiddrawGuiContainerForegroundLayer(int par1, int par2) Draw the foreground layer for the GuiContainer (everything in front of the items)voiddrawScreen(int iMouseX, int iMouseY, float fMysteryVariable) Draws the screen and all the components in it.// +++START EDIT+++ Gets the Instance of IMerchant interface. // ---END EDIT---voidinitGui()Adds the buttons (and other controls) to the screen in question.voidCalled from the main game loop to update the screen.Methods inherited from class net.minecraft.src.GuiContainer
checkHotbarKeys, doesGuiPauseGame, drawCreativeTabHoveringText, drawItemStackTooltip, func_102021_a, getGuiLeft, getGuiTop, getTheSlot, getxSize, getySize, handleMouseClick, installationIntegrityTest, isPointInRegion, keyTyped, mouseClicked, mouseClickMove, mouseMovedOrUp, onGuiClosedMethods inherited from class net.minecraft.src.GuiScreen
confirmClicked, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, setClipboardString, setWorldAndResolutionMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Constructor Details
-
GuiMerchant
public GuiMerchant(InventoryPlayer par1InventoryPlayer, IMerchant par2IMerchant, World par3World, String par4Str)
-
-
Method Details
-
initGui
public void initGui()Adds the buttons (and other controls) to the screen in question.- Overrides:
initGuiin classGuiContainer
-
drawGuiContainerForegroundLayer
protected void drawGuiContainerForegroundLayer(int par1, int par2) Draw the foreground layer for the GuiContainer (everything in front of the items)- Overrides:
drawGuiContainerForegroundLayerin classGuiContainer
-
drawGuiContainerBackgroundLayer
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) Draw the background layer for the GuiContainer (everything behind the items)- Specified by:
drawGuiContainerBackgroundLayerin classGuiContainer
-
getIMerchant
// +++START EDIT+++ Gets the Instance of IMerchant interface. // ---END EDIT--- -
drawScreen
public void drawScreen(int iMouseX, int iMouseY, float fMysteryVariable) Description copied from class:GuiContainerDraws the screen and all the components in it.- Overrides:
drawScreenin classGuiContainer
-
updateScreen
public void updateScreen()Description copied from class:GuiContainerCalled from the main game loop to update the screen.- Overrides:
updateScreenin classGuiContainer
-
actionPerformed
Description copied from class:GuiScreenFired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).- Overrides:
actionPerformedin classGuiScreen
-