Package net.minecraft.client.gui
Class GuiRepair
- java.lang.Object
-
- net.minecraft.client.gui.Gui
-
- net.minecraft.client.gui.GuiScreen
-
- net.minecraft.client.gui.inventory.GuiContainer
-
- net.minecraft.client.gui.GuiRepair
-
- All Implemented Interfaces:
GuiYesNoCallback
,ICrafting
public class GuiRepair extends GuiContainer implements ICrafting
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.client.gui.inventory.GuiContainer
dragSplitting, dragSplittingSlots, guiLeft, guiTop, inventoryBackground, inventorySlots, xSize, ySize
-
Fields inherited from class net.minecraft.client.gui.GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, showingCloseKey, width
-
Fields inherited from class net.minecraft.client.gui.Gui
icons, optionsBackground, statIcons, zLevel
-
-
Constructor Summary
Constructors Constructor Description GuiRepair(InventoryPlayer inventoryIn, World worldIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
drawGuiContainerBackgroundLayer(float var1, int var2, int var3)
+ Args : renderPartialTicks, mouseX, mouseYprotected void
drawGuiContainerForegroundLayer(int var1, int var2)
+ Draw the foreground layer for the GuiContainer (everything in front of the items).void
drawScreen(int i, int j, float f)
+ Draws the screen and all the components in it.void
func_175173_a(Container parContainer, IInventory parIInventory)
void
initGui()
+ Adds the buttons (and other controls) to the screen in question.protected void
keyTyped(char parChar1, int parInt1)
+ Fired when a key is typed (except F11 which toggles full screen).protected void
mouseClicked(int parInt1, int parInt2, int parInt3)
+ Called when the mouse is clicked.void
onGuiClosed()
+ Called when the screen is unloaded.void
sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
+ Sends two ints to the client-side Container.void
sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
+ Sends the contents of an inventory slot to the client-side Container.void
updateCraftingInventory(Container containerToSend, java.util.List<ItemStack> itemsList)
+ update the crafting window inventory with the items in the list-
Methods inherited from class net.minecraft.client.gui.inventory.GuiContainer
checkHotbarKeys, doesGuiPauseGame, handleMouseClick, isPointInRegion, mouseClickMove, mouseReleased, updateScreen
-
Methods inherited from class net.minecraft.client.gui.GuiScreen
actionPerformed, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, getCloseKey, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
-
Methods inherited from class net.minecraft.client.gui.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
-
-
-
-
Constructor Detail
-
GuiRepair
public GuiRepair(InventoryPlayer inventoryIn, World worldIn)
-
-
Method Detail
-
initGui
public void initGui()
+ Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the window resizes, the buttonList is cleared beforehand.- Overrides:
initGui
in classGuiContainer
-
onGuiClosed
public void onGuiClosed()
+ Called when the screen is unloaded. Used to disable keyboard repeat events- Overrides:
onGuiClosed
in classGuiContainer
-
drawGuiContainerForegroundLayer
protected void drawGuiContainerForegroundLayer(int var1, int var2)
+ Draw the foreground layer for the GuiContainer (everything in front of the items). Args : mouseX, mouseY- Overrides:
drawGuiContainerForegroundLayer
in classGuiContainer
-
keyTyped
protected void keyTyped(char parChar1, int parInt1)
+ Fired when a key is typed (except F11 which toggles full screen). This is the equivalent of KeyListener.keyTyped(KeyEvent e). Args : character (character on the key), keyCode (lwjgl Keyboard key code)- Overrides:
keyTyped
in classGuiContainer
-
mouseClicked
protected void mouseClicked(int parInt1, int parInt2, int parInt3)
+ Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton- Overrides:
mouseClicked
in classGuiContainer
-
drawScreen
public void drawScreen(int i, int j, float f)
+ Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks- Overrides:
drawScreen
in classGuiContainer
-
drawGuiContainerBackgroundLayer
protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3)
+ Args : renderPartialTicks, mouseX, mouseY- Specified by:
drawGuiContainerBackgroundLayer
in classGuiContainer
-
updateCraftingInventory
public void updateCraftingInventory(Container containerToSend, java.util.List<ItemStack> itemsList)
+ update the crafting window inventory with the items in the list- Specified by:
updateCraftingInventory
in interfaceICrafting
-
sendSlotContents
public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
+ 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:
sendSlotContents
in interfaceICrafting
-
sendProgressBarUpdate
public void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
+ 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:
sendProgressBarUpdate
in interfaceICrafting
-
func_175173_a
public void func_175173_a(Container parContainer, IInventory parIInventory)
- Specified by:
func_175173_a
in interfaceICrafting
-
-