public abstract class GuiContainer extends GuiScreen
Modifier and Type | Field and Description |
---|---|
Container |
inventorySlots
A list of the players inventory slots.
|
allowUserInput, guiParticles, height, isMacOs, width
Constructor and Description |
---|
GuiContainer(Container par1Container) |
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.
|
confirmClicked, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, setClipboardString, setWorldAndResolution
drawCenteredString, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon
public Container inventorySlots
public GuiContainer(Container par1Container)
public void initGui()
public void drawScreen(int par1, int par2, float par3)
drawScreen
in class GuiScreen
public void onGuiClosed()
onGuiClosed
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen