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, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiContainer(Container par1Container) |
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 var1,
int var2,
int var3) |
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 par1,
int par2,
float par3)
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 par1,
int par2)
Fired when a key is typed.
|
protected void |
mouseClicked(int par1,
int par2,
int par3)
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, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine, func_146110_a
protected 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 par1Container)
public void initGui()
public void drawScreen(int par1, int par2, float par3)
drawScreen
in class GuiScreen
protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_)
protected abstract void drawGuiContainerBackgroundLayer(float var1, int var2, int var3)
protected void mouseClicked(int par1, int par2, int par3)
mouseClicked
in class GuiScreen
protected void mouseClickMove(int p_146273_1_, int p_146273_2_, int p_146273_3_, long p_146273_4_)
mouseClickMove
in class GuiScreen
protected void mouseMovedOrUp(int p_146286_1_, int p_146286_2_, int p_146286_3_)
mouseMovedOrUp
in class GuiScreen
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_)
protected void keyTyped(char par1, int par2)
protected boolean checkHotbarKeys(int p_146983_1_)
public void onGuiClosed()
onGuiClosed
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen