public abstract class GuiContainer extends GuiScreen
Modifier and Type | Field and Description |
---|---|
protected static ResourceLocation |
field_110408_a |
protected boolean |
field_94076_q |
protected java.util.Set |
field_94077_p |
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 static RenderItem |
itemRenderer
Stacks renderer.
|
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, fontRenderer, height, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiContainer(Container par1Container) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkHotbarKeys(int par1)
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 void |
drawCreativeTabHoveringText(java.lang.String par1Str,
int par2,
int par3)
Draws the text when mouse is over creative inventory tab.
|
protected abstract void |
drawGuiContainerBackgroundLayer(float f,
int i,
int j)
Draw the background layer for the GuiContainer (everything behind the items)
|
protected void |
drawGuiContainerForegroundLayer(int par1,
int par2)
Draw the foreground layer for the GuiContainer (everything in front of the items)
|
protected void |
drawHoveringText(java.util.List par1List,
int par2,
int par3,
FontRenderer font) |
protected void |
drawItemStackTooltip(ItemStack par1ItemStack,
int par2,
int par3) |
void |
drawScreen(int par1,
int par2,
float par3)
Draws the screen and all the components in it.
|
protected void |
drawSlotInventory(Slot par1Slot)
Draws an inventory slot
|
protected void |
func_102021_a(java.util.List par1List,
int par2,
int par3) |
protected void |
handleMouseClick(Slot par1Slot,
int par2,
int par3,
int par4) |
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected boolean |
isPointInRegion(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
Args: left, top, width, height, pointX, pointY.
|
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 par1,
int par2,
int par3,
long par4)
Called when a mouse button is pressed and the mouse is moved around.
|
protected void |
mouseMovedOrUp(int par1,
int par2,
int par3)
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, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, handleMouseInput, isCtrlKeyDown, isShiftKeyDown, setClipboardString, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
protected static final ResourceLocation field_110408_a
protected static RenderItem itemRenderer
protected int xSize
protected int ySize
public Container inventorySlots
protected int guiLeft
protected int guiTop
protected final java.util.Set field_94077_p
protected boolean field_94076_q
public GuiContainer(Container par1Container)
public void initGui()
public void drawScreen(int par1, int par2, float par3)
drawScreen
in class GuiScreen
protected void drawItemStackTooltip(ItemStack par1ItemStack, int par2, int par3)
protected void drawCreativeTabHoveringText(java.lang.String par1Str, int par2, int par3)
protected void func_102021_a(java.util.List par1List, int par2, int par3)
protected void drawHoveringText(java.util.List par1List, int par2, int par3, FontRenderer font)
protected void drawGuiContainerForegroundLayer(int par1, int par2)
protected abstract void drawGuiContainerBackgroundLayer(float f, int i, int j)
protected void drawSlotInventory(Slot par1Slot)
protected void mouseClicked(int par1, int par2, int par3)
mouseClicked
in class GuiScreen
protected void mouseClickMove(int par1, int par2, int par3, long par4)
mouseClickMove
in class GuiScreen
protected void mouseMovedOrUp(int par1, int par2, int par3)
mouseMovedOrUp
in class GuiScreen
protected boolean isPointInRegion(int par1, int par2, int par3, int par4, int par5, int par6)
protected void handleMouseClick(Slot par1Slot, int par2, int par3, int par4)
protected void keyTyped(char par1, int par2)
protected boolean checkHotbarKeys(int par1)
public void onGuiClosed()
onGuiClosed
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen