public class GuiCommandBlock extends GuiScreen
Modifier and Type | Field and Description |
---|---|
private GuiButton |
cancelBtn |
private GuiTextField |
commandTextField
Text field containing the command block's command.
|
private GuiButton |
doneBtn
"Done" button for the GUI.
|
private static org.apache.logging.log4j.Logger |
field_146488_a |
private boolean |
field_175389_t |
private GuiButton |
field_175390_s |
private CommandBlockLogic |
localCommandBlock
Command block being edited.
|
private GuiTextField |
previousOutputTextField |
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiCommandBlock(CommandBlockLogic p_i45032_1_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
private void |
func_175388_a() |
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 |
updateScreen()
Called from the main game loop to update the screen.
|
confirmClicked, doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, 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 field_146488_a
private GuiTextField commandTextField
private GuiTextField previousOutputTextField
private final CommandBlockLogic localCommandBlock
private GuiButton doneBtn
private GuiButton cancelBtn
private GuiButton field_175390_s
private boolean field_175389_t
public GuiCommandBlock(CommandBlockLogic p_i45032_1_)
public void updateScreen()
updateScreen
in class GuiScreen
public void initGui()
public void onGuiClosed()
onGuiClosed
in class GuiScreen
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
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
private void func_175388_a()