public class GuiRepair extends GuiContainer implements ICrafting
Modifier and Type | Field and Description |
---|---|
private ContainerRepair |
anvil |
private static ResourceLocation |
anvilResource |
private GuiTextField |
nameField |
private InventoryPlayer |
playerInventory |
dragSplitting, dragSplittingSlots, guiLeft, guiTop, inventoryBackground, inventorySlots, xSize, ySize
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiRepair(InventoryPlayer inventoryIn,
World worldIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
Args : renderPartialTicks, mouseX, mouseY
|
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.
|
void |
func_175173_a(Container p_175173_1_,
IInventory p_175173_2_) |
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
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.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
private void |
renameItem() |
void |
sendProgressBarUpdate(Container containerIn,
int varToUpdate,
int newValue)
Sends two ints to the client-side Container.
|
void |
sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack)
Sends the contents of an inventory slot to the client-side Container.
|
void |
updateCraftingInventory(Container containerToSend,
java.util.List<ItemStack> itemsList)
update the crafting window inventory with the items in the list
|
checkHotbarKeys, doesGuiPauseGame, handleMouseClick, isPointInRegion, mouseClickMove, mouseReleased, updateScreen
actionPerformed, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final ResourceLocation anvilResource
private ContainerRepair anvil
private GuiTextField nameField
private InventoryPlayer playerInventory
public GuiRepair(InventoryPlayer inventoryIn, World worldIn)
public void initGui()
initGui
in class GuiContainer
public void onGuiClosed()
onGuiClosed
in class GuiContainer
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class GuiContainer
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
keyTyped
in class GuiContainer
java.io.IOException
private void renameItem()
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiContainer
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiContainer
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class GuiContainer
public void updateCraftingInventory(Container containerToSend, java.util.List<ItemStack> itemsList)
updateCraftingInventory
in interface ICrafting
public void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents
in interface ICrafting
public void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
sendProgressBarUpdate
in interface ICrafting
public void func_175173_a(Container p_175173_1_, IInventory p_175173_2_)
func_175173_a
in interface ICrafting