Package net.minecraft.src
Class GuiContainerCreative
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiContainer
net.minecraft.src.InventoryEffectRenderer
net.minecraft.src.GuiContainerCreative
-
Field Summary
Fields inherited from class net.minecraft.src.GuiContainer
field_110408_a, field_94076_q, field_94077_p, guiLeft, guiTop, inventorySlots, itemRenderer, xSize, ySizeFields inherited from class net.minecraft.src.GuiScreen
allowUserInput, buttonList, fontRenderer, height, mc, widthFields inherited from class net.minecraft.src.Gui
icons, optionsBackground, statIcons, zLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactionPerformed(GuiButton par1GuiButton) Fired when a control is clicked.protected voiddrawGuiContainerBackgroundLayer(float par1, int par2, int par3) Draw the background layer for the GuiContainer (everything behind the items)protected voiddrawGuiContainerForegroundLayer(int par1, int par2) Draw the foreground layer for the GuiContainer (everything in front of the items)protected voiddrawItemStackTooltip(ItemStack par1ItemStack, int par2, int par3) voiddrawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.protected booleanfunc_74232_a(CreativeTabs par1CreativeTabs, int par2, int par3) intReturns the current creative tab index.protected voidhandleMouseClick(Slot par1Slot, int par2, int par3, int par4) voidHandles mouse input.voidinitGui()Adds the buttons (and other controls) to the screen in question.protected voidkeyTyped(char par1, int par2) Fired when a key is typed.protected voidmouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.protected voidmouseMovedOrUp(int par1, int par2, int par3) Called when the mouse is moved or a mouse button is released.voidCalled when the screen is unloaded.protected booleanrenderCreativeInventoryHoveringText(CreativeTabs par1CreativeTabs, int par2, int par3) Renders the creative inventory hovering text if mouse is over it.protected voidrenderCreativeTab(CreativeTabs par1CreativeTabs) Renders passed creative inventory tab into the screen.voidCalled from the main game loop to update the screen.Methods inherited from class net.minecraft.src.GuiContainer
checkHotbarKeys, doesGuiPauseGame, drawCreativeTabHoveringText, func_102021_a, getGuiLeft, getGuiTop, getTheSlot, getxSize, getySize, installationIntegrityTest, isPointInRegion, mouseClickMoveMethods inherited from class net.minecraft.src.GuiScreen
confirmClicked, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, isCtrlKeyDown, isShiftKeyDown, setClipboardString, setWorldAndResolutionMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Constructor Details
-
GuiContainerCreative
-
-
Method Details
-
updateScreen
public void updateScreen()Called from the main game loop to update the screen.- Overrides:
updateScreenin classGuiContainer
-
handleMouseClick
- Overrides:
handleMouseClickin classGuiContainer
-
initGui
public void initGui()Adds the buttons (and other controls) to the screen in question.- Overrides:
initGuiin classInventoryEffectRenderer
-
onGuiClosed
public void onGuiClosed()Called when the screen is unloaded. Used to disable keyboard repeat events- Overrides:
onGuiClosedin classGuiContainer
-
keyTyped
protected void keyTyped(char par1, int par2) Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).- Overrides:
keyTypedin classGuiContainer
-
drawGuiContainerForegroundLayer
protected void drawGuiContainerForegroundLayer(int par1, int par2) Draw the foreground layer for the GuiContainer (everything in front of the items)- Overrides:
drawGuiContainerForegroundLayerin classGuiContainer
-
mouseClicked
protected void mouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.- Overrides:
mouseClickedin classGuiContainer
-
mouseMovedOrUp
protected void mouseMovedOrUp(int par1, int par2, int par3) Called when the mouse is moved or a mouse button is released. Signature: (mouseX, mouseY, which) which==-1 is mouseMove, which==0 or which==1 is mouseUp- Overrides:
mouseMovedOrUpin classGuiContainer
-
handleMouseInput
public void handleMouseInput()Handles mouse input.- Overrides:
handleMouseInputin classGuiScreen
-
drawScreen
public void drawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.- Overrides:
drawScreenin classInventoryEffectRenderer
-
drawItemStackTooltip
- Overrides:
drawItemStackTooltipin classGuiContainer
-
drawGuiContainerBackgroundLayer
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) Draw the background layer for the GuiContainer (everything behind the items)- Specified by:
drawGuiContainerBackgroundLayerin classGuiContainer
-
func_74232_a
-
renderCreativeInventoryHoveringText
protected boolean renderCreativeInventoryHoveringText(CreativeTabs par1CreativeTabs, int par2, int par3) Renders the creative inventory hovering text if mouse is over it. Returns true if did render or false otherwise. Params: current creative tab to be checked, current mouse x position, current mouse y position. -
renderCreativeTab
Renders passed creative inventory tab into the screen. -
actionPerformed
Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).- Overrides:
actionPerformedin classGuiScreen
-
getCurrentTabIndex
public int getCurrentTabIndex()Returns the current creative tab index.
-