public class GuiRepair extends GuiContainer implements IContainerListener
| Modifier and Type | Field and Description |
|---|---|
private ContainerRepair |
anvil |
private static ResourceLocation |
ANVIL_RESOURCE |
private GuiTextField |
nameField |
private InventoryPlayer |
playerInventory |
dragSplitting, 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 |
|---|
GuiRepair(InventoryPlayer inventoryIn,
World worldIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
private void |
renameItem() |
void |
sendAllContents(Container containerToSend,
NonNullList<ItemStack> itemsList) |
void |
sendAllWindowProperties(Container containerIn,
IInventory inventory) |
void |
sendSlotContents(Container containerToSend,
int slotInd,
ItemStack stack) |
void |
sendWindowProperty(Container containerIn,
int varToUpdate,
int newValue) |
checkHotbarKeys, doesGuiPauseGame, getGuiLeft, getGuiTop, getSlotUnderMouse, getXSize, getYSize, handleMouseClick, hasClickedOutside, isPointInRegion, mouseClickMove, mouseReleased, renderHoveredToolTip, updateScreenactionPerformed, 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, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate static final ResourceLocation ANVIL_RESOURCE
private final ContainerRepair anvil
private GuiTextField nameField
private final InventoryPlayer playerInventory
public 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.IOExceptionprivate void renameItem()
protected 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 sendAllContents(Container containerToSend, NonNullList<ItemStack> itemsList)
sendAllContents in interface IContainerListenerpublic void sendSlotContents(Container containerToSend, int slotInd, ItemStack stack)
sendSlotContents in interface IContainerListenerpublic void sendWindowProperty(Container containerIn, int varToUpdate, int newValue)
sendWindowProperty in interface IContainerListenerpublic void sendAllWindowProperties(Container containerIn, IInventory inventory)
sendAllWindowProperties in interface IContainerListener