net.minecraft.client.gui.inventory

## Class GuiContainer

- java.lang.Object
- - net.minecraft.client.gui.Gui
  - - net.minecraft.client.gui.GuiScreen
    - - net.minecraft.client.gui.inventory.GuiContainer

- Direct Known Subclasses:
    GuiBeacon, GuiBrewingStand, GuiChest, GuiCrafting, GuiDispenser, GuiEnchantment, GuiFurnace, GuiHopper, GuiMerchant, GuiRepair, GuiScreenHorseInventory, InventoryEffectRenderer

      public abstract class GuiContainer
      extends GuiScreen

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `Container` | `inventorySlots` A list of the players inventory slots.

    - ### Fields inherited from class net.minecraft.client.gui.GuiScreen

      `allowUserInput, height, width`

    - ### Fields inherited from class net.minecraft.client.gui.Gui

      `icons, optionsBackground, statIcons`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GuiContainer(Container par1Container)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `doesGuiPauseGame()` Returns true if this GUI should pause the game when it is displayed in single-player
    `void` | `drawScreen(int par1, int par2, float par3)` Draws the screen and all the components in it.
    `void` | `initGui()` Adds the buttons (and other controls) to the screen in question.
    `void` | `onGuiClosed()` Called when the screen is unloaded.
    `void` | `updateScreen()` Called from the main game loop to update the screen.

    - ### Methods inherited from class net.minecraft.client.gui.GuiScreen

      `confirmClicked, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, setClipboardString, setWorldAndResolution`

    - ### Methods inherited from class net.minecraft.client.gui.Gui

      `drawCenteredString, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### inventorySlots

          public Container inventorySlots

      A list of the players inventory slots.

  - ### Constructor Detail

    - #### GuiContainer

          public GuiContainer(Container par1Container)

  - ### Method Detail

    - #### initGui

          public void initGui()

      Adds the buttons (and other controls) to the screen in question.
      Overrides:
        `initGui` in class `GuiScreen`

    - #### drawScreen

          public void drawScreen(int par1,
                        int par2,
                        float par3)

      Draws the screen and all the components in it.
      Overrides:
        `drawScreen` in class `GuiScreen`

    - #### onGuiClosed

          public void onGuiClosed()

      Called when the screen is unloaded. Used to disable keyboard repeat events
      Overrides:
        `onGuiClosed` in class `GuiScreen`

    - #### doesGuiPauseGame

          public boolean doesGuiPauseGame()

      Returns true if this GUI should pause the game when it is displayed in single-player
      Overrides:
        `doesGuiPauseGame` in class `GuiScreen`

    - #### updateScreen

          public void updateScreen()

      Called from the main game loop to update the screen.
      Overrides:
        `updateScreen` in class `GuiScreen`