public abstract class GuiRecipe extends net.minecraft.client.gui.inventory.GuiContainer implements IGuiContainerOverlay, IGuiClientSide, IGuiHandleMouseWheel, IContainerTooltipHandler
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<? extends IRecipeHandler> |
currenthandlers |
net.minecraft.client.gui.inventory.GuiContainer |
firstGui |
GuiButton |
nextpage |
GuiButton |
overlay1 |
GuiButton |
overlay2 |
int |
page |
net.minecraft.client.gui.inventory.GuiContainer |
prevGui |
GuiButton |
prevpage |
int |
recipetype |
ContainerRecipe |
slotcontainer |
| Modifier | Constructor and Description |
|---|---|
protected |
GuiRecipe(net.minecraft.client.gui.inventory.GuiContainer prevgui) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton guibutton) |
protected void |
drawGuiContainerBackgroundLayer(float f,
int mx,
int my) |
protected void |
drawGuiContainerForegroundLayer(int par1,
int par2)
Draw the foreground layer for the GuiContainer (everything in front of the items)
|
abstract java.util.ArrayList<? extends IRecipeHandler> |
getCurrentRecipeHandlers() |
net.minecraft.client.gui.inventory.GuiContainer |
getFirstScreen() |
java.awt.Point |
getRecipePosition(int recipe) |
java.util.List<java.lang.String> |
handleItemDisplayName(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack itemstack,
java.util.List<java.lang.String> currenttip)
Use this for modifying the multiline display name of an item which may not necessarily be under the mouse.
|
java.util.List<java.lang.String> |
handleItemTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack stack,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
Use this for modifying the tooltips of items that are under the mouse.
|
java.util.List<java.lang.String> |
handleTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
Use this to add tooltips for other objects.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
boolean |
isMouseOver(PositionedStack stack,
int recipe) |
void |
keyTyped(char c,
int i)
Fired when a key is typed.
|
protected void |
mouseClicked(int par1,
int par2,
int par3)
Called when the mouse is clicked.
|
void |
mouseScrolled(int i) |
void |
refreshPage() |
void |
updateScreen()
Called from the main game loop to update the screen.
|
checkHotbarKeys, doesGuiPauseGame, drawScreen, func_146978_c, getSlotAtPosition, handleKeyboardInput, handleMouseClick, handleMouseInput, managerHandleMouseClick, mouseClickMove, mouseMovedOrUp, onGuiClosed, setWorldAndResolutionpublic java.util.ArrayList<? extends IRecipeHandler> currenthandlers
public int page
public int recipetype
public ContainerRecipe slotcontainer
public net.minecraft.client.gui.inventory.GuiContainer firstGui
public net.minecraft.client.gui.inventory.GuiContainer prevGui
public GuiButton nextpage
public GuiButton prevpage
public GuiButton overlay1
public GuiButton overlay2
protected GuiRecipe(net.minecraft.client.gui.inventory.GuiContainer prevgui)
public void initGui()
net.minecraft.client.gui.inventory.GuiContainerinitGui in class net.minecraft.client.gui.inventory.GuiContainerpublic void keyTyped(char c,
int i)
net.minecraft.client.gui.inventory.GuiContainerkeyTyped in class net.minecraft.client.gui.inventory.GuiContainerprotected void mouseClicked(int par1,
int par2,
int par3)
net.minecraft.client.gui.inventory.GuiContainermouseClicked in class net.minecraft.client.gui.inventory.GuiContainerprotected void actionPerformed(GuiButton guibutton)
public void updateScreen()
net.minecraft.client.gui.inventory.GuiContainerupdateScreen in class net.minecraft.client.gui.inventory.GuiContainerpublic java.util.List<java.lang.String> handleTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
IContainerTooltipHandlerhandleTooltip in interface IContainerTooltipHandlergui - An instance of the currentscreenmousex - The x position of the mouse in pixels from leftmousey - The y position of the mouse in pixels from topcurrenttip - A list of strings, representing each line of the current tooltip as modified by other handlerspublic java.util.List<java.lang.String> handleItemTooltip(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack stack,
int mousex,
int mousey,
java.util.List<java.lang.String> currenttip)
IContainerTooltipHandlerhandleItemTooltip in interface IContainerTooltipHandlergui - An instance of the currentscreenstack - The ItemStack under the mousecurrenttip - A list of strings, representing each line of the current tooltip as modified by other handlerspublic java.util.List<java.lang.String> handleItemDisplayName(net.minecraft.client.gui.inventory.GuiContainer gui,
ItemStack itemstack,
java.util.List<java.lang.String> currenttip)
IContainerTooltipHandlerhandleItemDisplayName in interface IContainerTooltipHandlergui - An instance of the currentscreen. If only general information about the item is wanted (Eg. potion effects) then this may be null.itemstack - The ItemStack under the mousecurrenttip - A list of strings, representing each line of the current tooltip as modified by other handlerspublic void refreshPage()
protected void drawGuiContainerForegroundLayer(int par1,
int par2)
net.minecraft.client.gui.inventory.GuiContainerdrawGuiContainerForegroundLayer in class net.minecraft.client.gui.inventory.GuiContainerprotected void drawGuiContainerBackgroundLayer(float f,
int mx,
int my)
drawGuiContainerBackgroundLayer in class net.minecraft.client.gui.inventory.GuiContainerpublic net.minecraft.client.gui.inventory.GuiContainer getFirstScreen()
getFirstScreen in interface IGuiContainerOverlaypublic boolean isMouseOver(PositionedStack stack, int recipe)
public java.awt.Point getRecipePosition(int recipe)
public void mouseScrolled(int i)
mouseScrolled in interface IGuiHandleMouseWheelpublic abstract java.util.ArrayList<? extends IRecipeHandler> getCurrentRecipeHandlers()