public class GuiMultiplayer extends GuiScreen implements GuiYesNoCallback
Modifier and Type | Field and Description |
---|---|
private boolean |
addingServer |
private GuiButton |
btnDeleteServer |
private GuiButton |
btnEditServer |
private GuiButton |
btnSelectServer |
private boolean |
deletingServer |
private boolean |
directConnect |
private boolean |
editingServer |
private java.lang.String |
hoveringText
The text to be displayed when the player's cursor hovers over a server listing.
|
private boolean |
initialized |
private LanServerDetector.ThreadLanServerFind |
lanServerDetector |
private LanServerDetector.LanServerList |
lanServerList |
private static org.apache.logging.log4j.Logger |
logger |
private OldServerPinger |
oldServerPinger |
private GuiScreen |
parentScreen |
private ServerList |
savedServerList |
private ServerData |
selectedServer |
private ServerSelectionList |
serverListSelector |
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, 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.
|
void |
confirmClicked(boolean result,
int id) |
void |
connectToSelected() |
private void |
connectToServer(ServerData server) |
void |
createButtons() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
void |
func_175391_a(ServerListEntryNormal p_175391_1_,
int p_175391_2_,
boolean p_175391_3_) |
boolean |
func_175392_a(ServerListEntryNormal p_175392_1_,
int p_175392_2_) |
void |
func_175393_b(ServerListEntryNormal p_175393_1_,
int p_175393_2_,
boolean p_175393_3_) |
boolean |
func_175394_b(ServerListEntryNormal p_175394_1_,
int p_175394_2_) |
OldServerPinger |
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 |
onGuiClosed()
Called when the screen is unloaded.
|
private void |
refreshServerList() |
void |
selectServer(int index) |
void |
setHoveringText(java.lang.String p_146793_1_) |
void |
updateScreen()
Called from the main game loop to update the screen.
|
doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final org.apache.logging.log4j.Logger logger
private final OldServerPinger oldServerPinger
private GuiScreen parentScreen
private ServerSelectionList serverListSelector
private ServerList savedServerList
private GuiButton btnEditServer
private GuiButton btnSelectServer
private GuiButton btnDeleteServer
private boolean deletingServer
private boolean addingServer
private boolean editingServer
private boolean directConnect
private java.lang.String hoveringText
private ServerData selectedServer
private LanServerDetector.LanServerList lanServerList
private LanServerDetector.ThreadLanServerFind lanServerDetector
private boolean initialized
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
private void refreshServerList()
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()
private void connectToServer(ServerData server)
public void selectServer(int index)
public OldServerPinger 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 func_175392_a(ServerListEntryNormal p_175392_1_, int p_175392_2_)
public boolean func_175394_b(ServerListEntryNormal p_175394_1_, int p_175394_2_)
public void func_175391_a(ServerListEntryNormal p_175391_1_, int p_175391_2_, boolean p_175391_3_)
public void func_175393_b(ServerListEntryNormal p_175393_1_, int p_175393_2_, boolean p_175393_3_)