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, width
ICONS, 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, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private 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 GuiScreen
public void updateGui()
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 updateCmdOutput()
private void updateMode()
private void nextMode()
private void updateConditional()
private void updateAutoExec()
public void setCompletions(java.lang.String... newCompletions)
setCompletions
in interface ITabCompleter