Class GuiInventory
- 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.GuiInventory
-
- All Implemented Interfaces:
GuiYesNoCallback
public class GuiInventory 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 GuiInventory(EntityPlayer parEntityPlayer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
actionPerformed(GuiButton parGuiButton)
+ Called by the controls from the buttonList when activated.static void
drawEntityOnScreen(int posX, int posY, int scale, float mouseX, float mouseY, EntityLivingBase ent)
+ Draws the entity to the screen.protected void
drawGuiContainerBackgroundLayer(float var1, int var2, int var3)
+ Args : renderPartialTicks, mouseX, mouseYprotected void
drawGuiContainerForegroundLayer(int var1, int var2)
+ Draw the foreground layer for the GuiContainer (everything in front of the items).void
drawScreen(int i, int j, float f)
+ Draws the screen and all the components in it.void
initGui()
+ Adds the buttons (and other controls) to the screen in question.void
updateScreen()
+ Called from the main game loop to update the screen.-
Methods inherited from class net.minecraft.client.renderer.InventoryEffectRenderer
updateActivePotionEffects
-
Methods inherited from class net.minecraft.client.gui.inventory.GuiContainer
checkHotbarKeys, doesGuiPauseGame, handleMouseClick, isPointInRegion, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed
-
Methods inherited from class net.minecraft.client.gui.GuiScreen
confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, getCloseKey, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, 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
-
GuiInventory
public GuiInventory(EntityPlayer parEntityPlayer)
-
-
Method Detail
-
updateScreen
public void updateScreen()
+ Called from the main game loop to update the screen.- Overrides:
updateScreen
in classGuiContainer
-
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:
initGui
in classInventoryEffectRenderer
-
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:
drawGuiContainerForegroundLayer
in classGuiContainer
-
drawScreen
public void drawScreen(int i, int j, float f)
+ Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks- Overrides:
drawScreen
in classInventoryEffectRenderer
-
drawGuiContainerBackgroundLayer
protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3)
+ Args : renderPartialTicks, mouseX, mouseY- Specified by:
drawGuiContainerBackgroundLayer
in classGuiContainer
-
drawEntityOnScreen
public static void drawEntityOnScreen(int posX, int posY, int scale, float mouseX, float mouseY, EntityLivingBase ent)
+ Draws the entity to the screen. Args: xPos, yPos, scale, mouseX, mouseY, entityLiving
-
actionPerformed
protected void actionPerformed(GuiButton parGuiButton)
+ Called by the controls from the buttonList when activated. (Mouse pressed for buttons)- Overrides:
actionPerformed
in classGuiScreen
-
-