public class GuiInventory extends InventoryEffectRenderer implements IRecipeShownListener
hasActivePotionEffectsdragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySizeallowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiInventory(EntityPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button)
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 an entity on the screen looking toward the cursor.
|
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
Draws the background layer of this container (behind the items).
|
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
Draw the foreground layer for the GuiContainer (everything in front of the items)
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
GuiRecipeBook |
func_194310_f() |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type)
Called when the mouse is clicked over a slot or outside the gui.
|
protected boolean |
hasClickedOutside(int p_193983_1_,
int p_193983_2_,
int p_193983_3_,
int p_193983_4_) |
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected boolean |
isPointInRegion(int rectX,
int rectY,
int rectWidth,
int rectHeight,
int pointX,
int pointY)
Test if the 2D point is in a rectangle (relative to the GUI).
|
protected void |
keyTyped(char typedChar,
int keyCode)
Fired when a key is typed (except F11 which toggles full screen).
|
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
protected void |
mouseReleased(int mouseX,
int mouseY,
int state)
Called when a mouse button is released.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
void |
recipesUpdated() |
void |
updateScreen()
Called from the main game loop to update the screen.
|
updateActivePotionEffectscheckHotbarKeys, doesGuiPauseGame, getGuiLeft, getGuiTop, getSlotUnderMouse, getXSize, getYSize, mouseClickMove, renderHoveredToolTipaddButton, confirmClicked, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiInventory(EntityPlayer player)
public void updateScreen()
updateScreen in class GuiContainerpublic void initGui()
initGui in class InventoryEffectRendererprotected void drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
drawGuiContainerForegroundLayer in class GuiContainerpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class InventoryEffectRendererprotected void drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class GuiContainerpublic static void drawEntityOnScreen(int posX,
int posY,
int scale,
float mouseX,
float mouseY,
EntityLivingBase ent)
protected boolean isPointInRegion(int rectX,
int rectY,
int rectWidth,
int rectHeight,
int pointX,
int pointY)
isPointInRegion in class GuiContainerprotected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiContainerjava.io.IOExceptionprotected void mouseReleased(int mouseX,
int mouseY,
int state)
mouseReleased in class GuiContainerprotected boolean hasClickedOutside(int p_193983_1_,
int p_193983_2_,
int p_193983_3_,
int p_193983_4_)
hasClickedOutside in class GuiContainerprotected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
keyTyped in class GuiContainerjava.io.IOExceptionprotected void handleMouseClick(Slot slotIn, int slotId, int mouseButton, ClickType type)
handleMouseClick in class GuiContainerpublic void recipesUpdated()
recipesUpdated in interface IRecipeShownListenerpublic void onGuiClosed()
onGuiClosed in class GuiContainerpublic GuiRecipeBook func_194310_f()
func_194310_f in interface IRecipeShownListener