Class 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)
    • 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 class GuiContainer
      • onGuiClosed

        public void onGuiClosed()
        + Called when the screen is unloaded. Used to disable keyboard repeat events
        Overrides:
        onGuiClosed in class GuiContainer
      • 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 class GuiContainer
      • 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 class GuiContainer
      • mouseClicked

        protected void mouseClicked​(int parInt1,
                                    int parInt2,
                                    int parInt3)
        + Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton
        Overrides:
        mouseClicked in class GuiContainer
      • 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 class GuiContainer
      • drawGuiContainerBackgroundLayer

        protected void drawGuiContainerBackgroundLayer​(float var1,
                                                       int var2,
                                                       int var3)
        + Args : renderPartialTicks, mouseX, mouseY
        Specified by:
        drawGuiContainerBackgroundLayer in class GuiContainer
      • 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 interface ICrafting
      • 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 interface ICrafting
      • 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 interface ICrafting