public class GuiRepair extends GuiContainer implements IContainerListener
dragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySizeallowUserInput, buttonList, fontRendererObj, height, itemRender, keyHandled, labelList, mc, mouseHandled, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiRepair(InventoryPlayer inventoryIn,
World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
void |
sendAllWindowProperties(Container containerIn,
IInventory inventory) |
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,
NonNullList<ItemStack> itemsList)
update the crafting window inventory with the items in the list
|
checkHotbarKeys, doesGuiPauseGame, getGuiLeft, getGuiTop, getSlotUnderMouse, getXSize, getYSize, handleMouseClick, isPointInRegion, mouseClickMove, mouseReleased, updateScreenactionPerformed, addButton, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiRepair(InventoryPlayer inventoryIn, World worldIn)
public void initGui()
initGui in class GuiContainerpublic void onGuiClosed()
onGuiClosed in class GuiContainerprotected void drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
drawGuiContainerForegroundLayer in class GuiContainerprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
keyTyped in class GuiContainerjava.io.IOExceptionprotected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiContainerjava.io.IOExceptionpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiContainerprotected void drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class GuiContainerpublic void updateCraftingInventory(Container containerToSend, NonNullList<ItemStack> itemsList)
updateCraftingInventory in interface IContainerListenerpublic void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents in interface IContainerListenerpublic void sendProgressBarUpdate(Container containerIn, int varToUpdate, int newValue)
sendProgressBarUpdate in interface IContainerListenerpublic void sendAllWindowProperties(Container containerIn, IInventory inventory)
sendAllWindowProperties in interface IContainerListener