Package net.minecraft.src
Class GuiRepair
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiContainer
net.minecraft.src.GuiRepair
- All Implemented Interfaces:
ICrafting
-
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
ConstructorsConstructorDescriptionGuiRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 par1, int par2, float par3) Draws the screen and all the components in it.voidinitGui()Adds the buttons (and other controls) to the screen in question.protected voidkeyTyped(char par1, int par2) Fired when a key is typed.protected voidmouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.voidCalled when the screen is unloaded.voidsendProgressBarUpdate(Container par1Container, int par2, int par3) Sends two ints to the client-side Container.voidsendSlotContents(Container par1Container, int par2, ItemStack par3ItemStack) Sends the contents of an inventory slot to the client-side Container.voidupdateCraftingInventory(Container par1Container, List par2List) Methods inherited from class net.minecraft.src.GuiContainer
checkHotbarKeys, doesGuiPauseGame, drawCreativeTabHoveringText, drawItemStackTooltip, func_102021_a, getGuiLeft, getGuiTop, getTheSlot, getxSize, getySize, handleMouseClick, installationIntegrityTest, isPointInRegion, mouseClickMove, mouseMovedOrUp, updateScreenMethods inherited from class net.minecraft.src.GuiScreen
actionPerformed, 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
-
GuiRepair
public GuiRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5)
-
-
Method Details
-
initGui
public void initGui()Adds the buttons (and other controls) to the screen in question.- Overrides:
initGuiin classGuiContainer
-
onGuiClosed
public void onGuiClosed()Called when the screen is unloaded. Used to disable keyboard repeat events- Overrides:
onGuiClosedin 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
-
keyTyped
protected void keyTyped(char par1, int par2) Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).- Overrides:
keyTypedin classGuiContainer
-
mouseClicked
protected void mouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.- Overrides:
mouseClickedin classGuiContainer
-
drawScreen
public void drawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.- Overrides:
drawScreenin 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
-
updateCraftingInventory
- Specified by:
updateCraftingInventoryin interfaceICrafting
-
sendSlotContents
Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot. Args: Container, slot number, slot contents- Specified by:
sendSlotContentsin interfaceICrafting
-
sendProgressBarUpdate
Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, and enchanting level. Normally the first int identifies which variable to update, and the second contains the new value. Both are truncated to shorts in non-local SMP.- Specified by:
sendProgressBarUpdatein interfaceICrafting
-