net.minecraft.client.gui.inventory
Class GuiContainer

java.lang.Object
  extended by net.minecraft.client.gui.Gui
      extended by net.minecraft.client.gui.GuiScreen
          extended by net.minecraft.client.gui.inventory.GuiContainer
Direct Known Subclasses:
GuiBeacon, GuiBrewingStand, GuiChest, GuiCrafting, GuiDispenser, GuiEnchantment, GuiFurnace, GuiMerchant, GuiRepair, InventoryEffectRenderer

public abstract class GuiContainer
extends GuiScreen


Field Summary
 Container inventorySlots
          A list of the players inventory slots.
 
Fields inherited from class net.minecraft.client.gui.GuiScreen
allowUserInput, guiParticles, height, isMacOs, width
 
Constructor Summary
GuiContainer(Container par1Container)
           
 
Method Summary
 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
 
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