public class GuiCrafting extends GuiContainer implements IRecipeShownListener
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
CRAFTING_TABLE_GUI_TEXTURES |
private GuiRecipeBook |
recipeBookGui |
private GuiButtonImage |
recipeButton |
private boolean |
widthTooNarrow |
dragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySize
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiCrafting(InventoryPlayer playerInv,
World worldIn) |
GuiCrafting(InventoryPlayer playerInv,
World worldIn,
BlockPos blockPosition) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
GuiRecipeBook |
func_194310_f() |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type) |
protected boolean |
hasClickedOutside(int p_193983_1_,
int p_193983_2_,
int p_193983_3_,
int p_193983_4_) |
void |
initGui() |
protected boolean |
isPointInRegion(int rectX,
int rectY,
int rectWidth,
int rectHeight,
int pointX,
int pointY) |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
void |
recipesUpdated() |
void |
updateScreen() |
checkHotbarKeys, doesGuiPauseGame, getGuiLeft, getGuiTop, getSlotUnderMouse, getXSize, getYSize, mouseClickMove, mouseReleased, renderHoveredToolTip
addButton, 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, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final ResourceLocation CRAFTING_TABLE_GUI_TEXTURES
private GuiButtonImage recipeButton
private final GuiRecipeBook recipeBookGui
private boolean widthTooNarrow
public GuiCrafting(InventoryPlayer playerInv, World worldIn)
public GuiCrafting(InventoryPlayer playerInv, World worldIn, BlockPos blockPosition)
public void initGui()
initGui
in class GuiContainer
public void updateScreen()
updateScreen
in class GuiContainer
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiContainer
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class GuiContainer
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class GuiContainer
protected boolean isPointInRegion(int rectX, int rectY, int rectWidth, int rectHeight, int pointX, int pointY)
isPointInRegion
in class GuiContainer
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiContainer
java.io.IOException
protected boolean hasClickedOutside(int p_193983_1_, int p_193983_2_, int p_193983_3_, int p_193983_4_)
hasClickedOutside
in class GuiContainer
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
keyTyped
in class GuiContainer
java.io.IOException
protected void handleMouseClick(Slot slotIn, int slotId, int mouseButton, ClickType type)
handleMouseClick
in class GuiContainer
public void recipesUpdated()
recipesUpdated
in interface IRecipeShownListener
public void onGuiClosed()
onGuiClosed
in class GuiContainer
public GuiRecipeBook func_194310_f()
func_194310_f
in interface IRecipeShownListener