public class GuiMultiplayer extends GuiScreen
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 |
private boolean |
initialized |
private LanServerDetector.ThreadLanServerFind |
lanServerDetector |
private LanServerDetector.LanServerList |
lanServerList |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ServerPinger |
oldServerPinger |
private GuiScreen |
parentScreen |
private ServerList |
savedServerList |
private ServerData |
selectedServer |
private ServerSelectionList |
serverListSelector |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiMultiplayer(GuiScreen parentScreen) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
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() |
private void |
connectToServer(ServerData server) |
void |
createButtons() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
ServerPinger |
getOldServerPinger() |
ServerList |
getServerList() |
void |
handleMouseInput() |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
protected void |
mouseReleased(int mouseX,
int mouseY,
int state) |
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() |
private void |
refreshServerList() |
void |
selectServer(int index) |
void |
setHoveringText(java.lang.String p_146793_1_) |
void |
updateScreen() |
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, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final org.apache.logging.log4j.Logger LOGGER
private final ServerPinger oldServerPinger
private final 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 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 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_)