public class GuiMultiplayer extends GuiScreen
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiMultiplayer(GuiScreen parentScreen) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
boolean |
canMoveDown(ServerListEntryNormal p_175394_1_,
int p_175394_2_) |
boolean |
canMoveUp(ServerListEntryNormal p_175392_1_,
int p_175392_2_) |
void |
confirmClicked(boolean result,
int id) |
void |
connectToSelected() |
void |
createButtons() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
ServerPinger |
getOldServerPinger() |
ServerList |
getServerList() |
void |
handleMouseInput()
Handles mouse input.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected void |
keyTyped(char typedChar,
int keyCode)
Fired when a key is typed (except F11 which toggles full screen).
|
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
protected void |
mouseReleased(int mouseX,
int mouseY,
int state)
Called when a mouse button is released.
|
void |
moveServerDown(ServerListEntryNormal p_175393_1_,
int p_175393_2_,
boolean p_175393_3_) |
void |
moveServerUp(ServerListEntryNormal p_175391_1_,
int p_175391_2_,
boolean p_175391_3_) |
void |
onGuiClosed()
Called when the screen is unloaded.
|
void |
selectServer(int index) |
void |
setHoveringText(java.lang.String p_146793_1_) |
void |
updateScreen()
Called from the main game loop to update the screen.
|
addButton, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiMultiplayer(GuiScreen parentScreen)
public void initGui()
public void handleMouseInput()
throws java.io.IOException
handleMouseInput in class GuiScreenjava.io.IOExceptionpublic void createButtons()
public void updateScreen()
updateScreen in class GuiScreenpublic void onGuiClosed()
onGuiClosed in class GuiScreenprotected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionpublic void confirmClicked(boolean result,
int id)
confirmClicked in interface GuiYesNoCallbackconfirmClicked in class GuiScreenprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
public void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiScreenpublic void connectToSelected()
public void selectServer(int index)
public ServerPinger getOldServerPinger()
public void setHoveringText(java.lang.String p_146793_1_)
protected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiScreenjava.io.IOExceptionprotected void mouseReleased(int mouseX,
int mouseY,
int state)
mouseReleased in class GuiScreenpublic ServerList getServerList()
public boolean canMoveUp(ServerListEntryNormal p_175392_1_, int p_175392_2_)
public boolean canMoveDown(ServerListEntryNormal p_175394_1_, int p_175394_2_)
public void moveServerUp(ServerListEntryNormal p_175391_1_, int p_175391_2_, boolean p_175391_3_)
public void moveServerDown(ServerListEntryNormal p_175393_1_, int p_175393_2_, boolean p_175393_3_)