public abstract class GuiContainer extends GuiScreen
| Modifier and Type | Field and Description |
|---|---|
protected static ResourceLocation |
field_147001_a |
protected boolean |
field_147007_t |
protected java.util.Set |
field_147008_s |
protected int |
guiLeft
Starting X position for the Gui.
|
protected int |
guiTop
Starting Y position for the Gui.
|
Container |
inventorySlots
A list of the players inventory slots
|
protected int |
xSize
The X size of the inventory window in pixels.
|
protected int |
ySize
The Y size of the inventory window in pixels.
|
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, widthicons, optionsBackground, statIcons, zLevel| Constructor and Description |
|---|
GuiContainer(Container p_i1072_1_) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkHotbarKeys(int p_146983_1_)
This function is what controls the hotbar shortcut check when you press a number key when hovering a stack.
|
boolean |
doesGuiPauseGame()
Returns true if this GUI should pause the game when it is displayed in single-player
|
protected abstract void |
drawGuiContainerBackgroundLayer(float p_146976_1_,
int p_146976_2_,
int p_146976_3_) |
protected void |
drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_)
Draw the foreground layer for the GuiContainer (everything in front of the items)
|
void |
drawScreen(int p_73863_1_,
int p_73863_2_,
float p_73863_3_)
Draws the screen and all the components in it.
|
protected boolean |
func_146978_c(int p_146978_1_,
int p_146978_2_,
int p_146978_3_,
int p_146978_4_,
int p_146978_5_,
int p_146978_6_) |
protected void |
handleMouseClick(Slot p_146984_1_,
int p_146984_2_,
int p_146984_3_,
int p_146984_4_) |
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected void |
keyTyped(char p_73869_1_,
int p_73869_2_)
Fired when a key is typed.
|
protected void |
mouseClicked(int p_73864_1_,
int p_73864_2_,
int p_73864_3_)
Called when the mouse is clicked.
|
protected void |
mouseClickMove(int p_146273_1_,
int p_146273_2_,
int p_146273_3_,
long p_146273_4_)
Called when a mouse button is pressed and the mouse is moved around.
|
protected void |
mouseMovedOrUp(int p_146286_1_,
int p_146286_2_,
int p_146286_3_)
Called when the mouse is moved or a mouse button is released.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
actionPerformed, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, func_146283_a, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, renderToolTip, setClipboardString, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine, func_146110_a, func_152125_aprotected static final ResourceLocation field_147001_a
protected int xSize
protected int ySize
public Container inventorySlots
protected int guiLeft
protected int guiTop
protected final java.util.Set field_147008_s
protected boolean field_147007_t
public GuiContainer(Container p_i1072_1_)
public void initGui()
public void drawScreen(int p_73863_1_,
int p_73863_2_,
float p_73863_3_)
drawScreen in class GuiScreenprotected void drawGuiContainerForegroundLayer(int p_146979_1_,
int p_146979_2_)
protected abstract void drawGuiContainerBackgroundLayer(float p_146976_1_,
int p_146976_2_,
int p_146976_3_)
protected void mouseClicked(int p_73864_1_,
int p_73864_2_,
int p_73864_3_)
mouseClicked in class GuiScreenprotected void mouseClickMove(int p_146273_1_,
int p_146273_2_,
int p_146273_3_,
long p_146273_4_)
mouseClickMove in class GuiScreenprotected void mouseMovedOrUp(int p_146286_1_,
int p_146286_2_,
int p_146286_3_)
mouseMovedOrUp in class GuiScreenprotected boolean func_146978_c(int p_146978_1_,
int p_146978_2_,
int p_146978_3_,
int p_146978_4_,
int p_146978_5_,
int p_146978_6_)
protected void handleMouseClick(Slot p_146984_1_, int p_146984_2_, int p_146984_3_, int p_146984_4_)
protected void keyTyped(char p_73869_1_,
int p_73869_2_)
protected boolean checkHotbarKeys(int p_146983_1_)
public void onGuiClosed()
onGuiClosed in class GuiScreenpublic boolean doesGuiPauseGame()
doesGuiPauseGame in class GuiScreenpublic void updateScreen()
updateScreen in class GuiScreen