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, GuiMerchant, GuiRepair, InventoryEffectRenderer
public abstract class GuiContainer
- extends GuiScreen
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 |
inventorySlots
public Container inventorySlots
- A list of the players inventory slots.
GuiContainer
public GuiContainer(Container par1Container)
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