Class GuiScreenResourcePacks

  • All Implemented Interfaces:
    GuiYesNoCallback

    public class GuiScreenResourcePacks
    extends GuiScreen
    + 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)
    • Constructor Detail

      • GuiScreenResourcePacks

        public GuiScreenResourcePacks​(GuiScreen parentScreenIn)
    • 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 GuiScreen
      • handleMouseInput

        public void handleMouseInput()
                              throws java.io.IOException
        + Handles mouse input.
        Overrides:
        handleMouseInput in class GuiScreen
        Throws:
        java.io.IOException
      • hasResourcePackEntry

        public boolean hasResourcePackEntry​(ResourcePackListEntry parResourcePackListEntry)
      • getListContaining

        public java.util.List<ResourcePackListEntry> getListContaining​(ResourcePackListEntry parResourcePackListEntry)
        + Returns the list containing the resource pack entry, returns the selected list if it is selected, otherwise returns the available list
      • getAvailableResourcePacks

        public java.util.List<ResourcePackListEntry> getAvailableResourcePacks()
        + Returns a list containing the available resource packs
      • getSelectedResourcePacks

        public java.util.List<ResourcePackListEntry> getSelectedResourcePacks()
        + Returns a list containing the selected resource packs
      • actionPerformed

        protected void actionPerformed​(GuiButton parGuiButton)
        + Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
        Overrides:
        actionPerformed in class GuiScreen
      • updateScreen

        public void updateScreen()
        Description copied from class: GuiScreen
        + Called from the main game loop to update the screen.
        Overrides:
        updateScreen in class GuiScreen
      • mouseClicked

        protected void mouseClicked​(int parInt1,
                                    int parInt2,
                                    int parInt3)
        + Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton
        Overrides:
        mouseClicked in class GuiScreen
      • mouseReleased

        protected void mouseReleased​(int i,
                                     int j,
                                     int k)
        + Called when a mouse button is released. Args : mouseX, mouseY, releaseButton
        Overrides:
        mouseReleased in class GuiScreen
      • 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 GuiScreen
      • markChanged

        public void markChanged()
        + Marks the selected resource packs list as changed to trigger a resource reload when the screen is closed