public class GuiChat extends GuiScreen implements ITabCompleter
Modifier and Type | Class and Description |
---|---|
static class |
GuiChat.ChatTabCompleter |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultInputFieldText |
private java.lang.String |
historyBuffer |
protected GuiTextField |
inputField |
private static org.apache.logging.log4j.Logger |
LOGGER |
private int |
sentHistoryCursor |
private TabCompleter |
tabCompleter |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiChat() |
GuiChat(java.lang.String defaultText) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesGuiPauseGame() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
void |
getSentHistory(int msgPos) |
void |
handleMouseInput() |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
void |
setCompletions(java.lang.String... newCompletions) |
protected void |
setText(java.lang.String newChatText,
boolean shouldOverwrite) |
void |
updateScreen() |
actionPerformed, addButton, confirmClicked, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final org.apache.logging.log4j.Logger LOGGER
private java.lang.String historyBuffer
private int sentHistoryCursor
private TabCompleter tabCompleter
protected GuiTextField inputField
private java.lang.String defaultInputFieldText
public void onGuiClosed()
onGuiClosed
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class GuiScreen
java.io.IOException
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
protected void setText(java.lang.String newChatText, boolean shouldOverwrite)
public void getSentHistory(int msgPos)
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
public void setCompletions(java.lang.String... newCompletions)
setCompletions
in interface ITabCompleter