public class GuiChat extends GuiScreen
Modifier and Type | Field and Description |
---|---|
protected GuiTextField |
inputField
Chat entry field
|
allowUserInput, buttonList, fontRenderer, height, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiChat() |
GuiChat(java.lang.String par1Str) |
Modifier and Type | Method and Description |
---|---|
void |
completePlayerName()
Autocompletes player name
|
void |
confirmClicked(boolean par1,
int par2) |
boolean |
doesGuiPauseGame()
Returns true if this GUI should pause the game when it is displayed in single-player
|
void |
drawScreen(int par1,
int par2,
float par3)
Draws the screen and all the components in it.
|
void |
func_73894_a(java.lang.String[] par1ArrayOfStr) |
void |
getSentHistory(int par1)
input is relative and is applied directly to the sentHistoryCursor so -1 is the previous message, 1 is the next
message from the current cursor position
|
void |
handleMouseInput()
Handles mouse input.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected void |
keyTyped(char par1,
int par2)
Fired when a key is typed.
|
protected void |
mouseClicked(int par1,
int par2,
int par3)
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.
|
actionPerformed, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, isCtrlKeyDown, isShiftKeyDown, mouseClickMove, mouseMovedOrUp, setClipboardString, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
protected GuiTextField inputField
public void initGui()
public void onGuiClosed()
onGuiClosed
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen
protected void keyTyped(char par1, int par2)
public void handleMouseInput()
handleMouseInput
in class GuiScreen
protected void mouseClicked(int par1, int par2, int par3)
mouseClicked
in class GuiScreen
public void confirmClicked(boolean par1, int par2)
confirmClicked
in class GuiScreen
public void completePlayerName()
public void getSentHistory(int par1)
public void drawScreen(int par1, int par2, float par3)
drawScreen
in class GuiScreen
public void func_73894_a(java.lang.String[] par1ArrayOfStr)
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen