public class GuiMultiplayer extends GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, keyHandled, labelList, mc, mouseHandled, width
ICONS, 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, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public GuiMultiplayer(GuiScreen parentScreen)
public void initGui()
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class GuiScreen
java.io.IOException
public void createButtons()
public void updateScreen()
updateScreen
in class GuiScreen
public void onGuiClosed()
onGuiClosed
in class GuiScreen
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
public void confirmClicked(boolean result, int id)
confirmClicked
in interface GuiYesNoCallback
confirmClicked
in class GuiScreen
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public 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 GuiScreen
java.io.IOException
protected void mouseReleased(int mouseX, int mouseY, int state)
mouseReleased
in class GuiScreen
public 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_)