Class GuiContainerCreative
- java.lang.Object
-
- net.minecraft.client.gui.Gui
-
- net.minecraft.client.gui.GuiScreen
-
- net.minecraft.client.gui.inventory.GuiContainer
-
- net.minecraft.client.renderer.InventoryEffectRenderer
-
- net.minecraft.client.gui.inventory.GuiContainerCreative
-
- All Implemented Interfaces:
GuiYesNoCallback
public class GuiContainerCreative extends InventoryEffectRenderer
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.client.gui.inventory.GuiContainer
dragSplitting, dragSplittingSlots, guiLeft, guiTop, inventoryBackground, inventorySlots, xSize, ySize
-
Fields inherited from class net.minecraft.client.gui.GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, showingCloseKey, width
-
Fields inherited from class net.minecraft.client.gui.Gui
icons, optionsBackground, statIcons, zLevel
-
-
Constructor Summary
Constructors Constructor Description GuiContainerCreative(EntityPlayer parEntityPlayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactionPerformed(GuiButton parGuiButton)+ Called by the controls from the buttonList when activated.protected voiddrawGuiContainerBackgroundLayer(float var1, int i, int j)+ Args : renderPartialTicks, mouseX, mouseYprotected voiddrawGuiContainerForegroundLayer(int var1, int var2)+ Draw the foreground layer for the GuiContainer (everything in front of the items).voiddrawScreen(int i, int j, float f)+ Draws the screen and all the components in it.protected booleanfunc_147049_a(CreativeTabs parCreativeTabs, int parInt1, int parInt2)protected voidfunc_147051_a(CreativeTabs parCreativeTabs)protected intgetCloseKey()intgetSelectedTabIndex()protected voidhandleMouseClick(Slot slot, int i, int j, int k)+ Called when the mouse is clicked over a slot or outside the gui.voidhandleMouseInput()+ Handles mouse input.voidinitGui()+ Adds the buttons (and other controls) to the screen in question.protected voidkeyTyped(char parChar1, int parInt1)+ Fired when a key is typed (except F11 which toggles full screen).protected voidmouseClicked(int parInt1, int parInt2, int parInt3)+ Called when the mouse is clicked.protected voidmouseReleased(int i, int j, int k)+ Called when a mouse button is released.voidonGuiClosed()+ Called when the screen is unloaded.protected booleanrenderCreativeInventoryHoveringText(CreativeTabs parCreativeTabs, int parInt1, int parInt2)+ Renders the creative inventory hovering text if mouse is over it.protected voidrenderToolTip(ItemStack itemstack, int i, int j)protected voidupdateActivePotionEffects()voidupdateScreen()+ Called from the main game loop to update the screen.-
Methods inherited from class net.minecraft.client.gui.inventory.GuiContainer
checkHotbarKeys, doesGuiPauseGame, isPointInRegion, mouseClickMove
-
Methods inherited from class net.minecraft.client.gui.GuiScreen
confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
-
Methods inherited from class net.minecraft.client.gui.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
-
-
-
-
Constructor Detail
-
GuiContainerCreative
public GuiContainerCreative(EntityPlayer parEntityPlayer)
-
-
Method Detail
-
updateScreen
public void updateScreen()
+ Called from the main game loop to update the screen.- Overrides:
updateScreenin classGuiContainer
-
handleMouseClick
protected void handleMouseClick(Slot slot, int i, int j, int k)
+ Called when the mouse is clicked over a slot or outside the gui.- Overrides:
handleMouseClickin classGuiContainer
-
updateActivePotionEffects
protected void updateActivePotionEffects()
- Overrides:
updateActivePotionEffectsin classInventoryEffectRenderer
-
initGui
public void initGui()
+ Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the window resizes, the buttonList is cleared beforehand.- 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 parChar1, int parInt1)+ Fired when a key is typed (except F11 which toggles full screen). This is the equivalent of KeyListener.keyTyped(KeyEvent e). Args : character (character on the key), keyCode (lwjgl Keyboard key code)- Overrides:
keyTypedin classGuiContainer
-
getCloseKey
protected int getCloseKey()
- Overrides:
getCloseKeyin classGuiScreen
-
drawGuiContainerForegroundLayer
protected void drawGuiContainerForegroundLayer(int var1, int var2)+ Draw the foreground layer for the GuiContainer (everything in front of the items). Args : mouseX, mouseY- Overrides:
drawGuiContainerForegroundLayerin classGuiContainer
-
mouseClicked
protected void mouseClicked(int parInt1, int parInt2, int parInt3)+ Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton- Overrides:
mouseClickedin classGuiContainer
-
mouseReleased
protected void mouseReleased(int i, int j, int k)+ Called when a mouse button is released. Args : mouseX, mouseY, releaseButton- Overrides:
mouseReleasedin classGuiContainer
-
handleMouseInput
public void handleMouseInput() throws java.io.IOException+ Handles mouse input.- Overrides:
handleMouseInputin classGuiScreen- Throws:
java.io.IOException
-
drawScreen
public void drawScreen(int i, int j, float f)+ Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks- Overrides:
drawScreenin classInventoryEffectRenderer
-
renderToolTip
protected void renderToolTip(ItemStack itemstack, int i, int j)
- Overrides:
renderToolTipin classGuiScreen
-
drawGuiContainerBackgroundLayer
protected void drawGuiContainerBackgroundLayer(float var1, int i, int j)+ Args : renderPartialTicks, mouseX, mouseY- Specified by:
drawGuiContainerBackgroundLayerin classGuiContainer
-
func_147049_a
protected boolean func_147049_a(CreativeTabs parCreativeTabs, int parInt1, int parInt2)
-
renderCreativeInventoryHoveringText
protected boolean renderCreativeInventoryHoveringText(CreativeTabs parCreativeTabs, int parInt1, int parInt2)
+ 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.
-
func_147051_a
protected void func_147051_a(CreativeTabs parCreativeTabs)
-
actionPerformed
protected void actionPerformed(GuiButton parGuiButton)
+ Called by the controls from the buttonList when activated. (Mouse pressed for buttons)- Overrides:
actionPerformedin classGuiScreen
-
getSelectedTabIndex
public int getSelectedTabIndex()
-
-