public class GuiBeacon extends GuiContainer
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GuiBeacon.Button |
(package private) class |
GuiBeacon.CancelButton |
(package private) class |
GuiBeacon.ConfirmButton |
(package private) class |
GuiBeacon.PowerButton |
Modifier and Type | Field and Description |
---|---|
private GuiBeacon.ConfirmButton |
beaconConfirmButton |
private static ResourceLocation |
beaconGuiTextures |
private boolean |
buttonsNotDrawn |
private static org.apache.logging.log4j.Logger |
logger |
private IInventory |
tileBeacon |
dragSplitting, dragSplittingSlots, guiLeft, guiTop, inventoryBackground, inventorySlots, xSize, ySize
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiBeacon(InventoryPlayer playerInventory,
IInventory tileBeaconIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
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 |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
checkHotbarKeys, doesGuiPauseGame, drawScreen, handleMouseClick, isPointInRegion, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed
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 org.apache.logging.log4j.Logger logger
private static final ResourceLocation beaconGuiTextures
private IInventory tileBeacon
private GuiBeacon.ConfirmButton beaconConfirmButton
private boolean buttonsNotDrawn
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
public void initGui()
initGui
in class GuiContainer
public void updateScreen()
updateScreen
in class GuiContainer
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class GuiContainer
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class GuiContainer