Package net.minecraft.src
Class GuiChat
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiScreen
net.minecraft.src.GuiChat
- Direct Known Subclasses:
GuiSleepMP
-
Field Summary
FieldsFields inherited from class net.minecraft.src.GuiScreen
allowUserInput, buttonList, fontRenderer, height, mc, widthFields inherited from class net.minecraft.src.Gui
icons, optionsBackground, statIcons, zLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAutocompletes player namevoidconfirmClicked(boolean par1, int par2) booleanReturns true if this GUI should pause the game when it is displayed in single-playervoiddrawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.voidfunc_73894_a(String[] par1ArrayOfStr) voidgetSentHistory(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 positionvoidHandles mouse input.voidinitGui()Adds the buttons (and other controls) to the screen in question.protected voidkeyTyped(char par1, int par2) Fired when a key is typed.protected voidmouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.voidCalled when the screen is unloaded.voidCalled from the main game loop to update the screen.Methods inherited from class net.minecraft.src.GuiScreen
actionPerformed, drawBackground, drawDefaultBackground, drawWorldBackground, getClipboardString, handleInput, handleKeyboardInput, isCtrlKeyDown, isShiftKeyDown, mouseClickMove, mouseMovedOrUp, setClipboardString, setWorldAndResolutionMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Field Details
-
inputField
Chat entry field
-
-
Constructor Details
-
GuiChat
public GuiChat() -
GuiChat
-
-
Method Details
-
initGui
public void initGui()Adds the buttons (and other controls) to the screen in question. -
onGuiClosed
public void onGuiClosed()Called when the screen is unloaded. Used to disable keyboard repeat events- Overrides:
onGuiClosedin classGuiScreen
-
updateScreen
public void updateScreen()Called from the main game loop to update the screen.- Overrides:
updateScreenin classGuiScreen
-
keyTyped
protected void keyTyped(char par1, int par2) Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). -
handleMouseInput
public void handleMouseInput()Handles mouse input.- Overrides:
handleMouseInputin classGuiScreen
-
mouseClicked
protected void mouseClicked(int par1, int par2, int par3) Called when the mouse is clicked.- Overrides:
mouseClickedin classGuiScreen
-
confirmClicked
public void confirmClicked(boolean par1, int par2) - Overrides:
confirmClickedin classGuiScreen
-
completePlayerName
public void completePlayerName()Autocompletes player name -
getSentHistory
public 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 -
drawScreen
public void drawScreen(int par1, int par2, float par3) Draws the screen and all the components in it.- Overrides:
drawScreenin classGuiScreen
-
func_73894_a
-
doesGuiPauseGame
public boolean doesGuiPauseGame()Returns true if this GUI should pause the game when it is displayed in single-player- Overrides:
doesGuiPauseGamein classGuiScreen
-