public class GuiCommandBlock extends GuiScreen implements ITabCompleter
| Modifier and Type | Field and Description |
|---|---|
private GuiButton |
autoExecBtn |
private boolean |
automatic |
private GuiButton |
cancelBtn |
private TileEntityCommandBlock |
commandBlock |
private TileEntityCommandBlock.Mode |
commandBlockMode |
private GuiTextField |
commandTextField |
private boolean |
conditional |
private GuiButton |
conditionalBtn |
private GuiButton |
doneBtn |
private GuiButton |
modeBtn |
private GuiButton |
outputBtn |
private GuiTextField |
previousOutputTextField |
private TabCompleter |
tabCompleter |
private boolean |
trackOutput |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiCommandBlock(TileEntityCommandBlock commandBlockIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button) |
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) |
private void |
nextMode() |
void |
onGuiClosed() |
void |
setCompletions(java.lang.String... newCompletions) |
private void |
updateAutoExec() |
private void |
updateCmdOutput() |
private void |
updateConditional() |
void |
updateGui() |
private void |
updateMode() |
void |
updateScreen() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate GuiTextField commandTextField
private GuiTextField previousOutputTextField
private final TileEntityCommandBlock commandBlock
private GuiButton doneBtn
private GuiButton cancelBtn
private GuiButton outputBtn
private GuiButton modeBtn
private GuiButton conditionalBtn
private GuiButton autoExecBtn
private boolean trackOutput
private TileEntityCommandBlock.Mode commandBlockMode
private TabCompleter tabCompleter
private boolean conditional
private boolean automatic
public GuiCommandBlock(TileEntityCommandBlock commandBlockIn)
public void updateScreen()
updateScreen in class GuiScreenpublic void updateGui()
public void onGuiClosed()
onGuiClosed in class GuiScreenprotected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionprotected 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 GuiScreenjava.io.IOExceptionpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiScreenprivate void updateCmdOutput()
private void updateMode()
private void nextMode()
private void updateConditional()
private void updateAutoExec()
public void setCompletions(java.lang.String... newCompletions)
setCompletions in interface ITabCompleter