Package net.minecraft.client.gui
Class GuiMultiplayer
- java.lang.Object
-
- net.minecraft.client.gui.Gui
-
- net.minecraft.client.gui.GuiScreen
-
- net.minecraft.client.gui.GuiMultiplayer
-
- All Implemented Interfaces:
GuiYesNoCallback
public class GuiMultiplayer extends GuiScreen implements GuiYesNoCallback
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.client.gui.GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, showingCloseKey, width
-
Fields inherited from class net.minecraft.client.gui.Gui
icons, optionsBackground, statIcons, zLevel
-
-
Constructor Summary
Constructors Constructor Description GuiMultiplayer(GuiScreen parentScreen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
actionPerformed(GuiButton parGuiButton)
+ Called by the controls from the buttonList when activated.void
confirmClicked(boolean flag, int var2)
void
connectToSelected()
void
createButtons()
void
drawScreen(int i, int j, float f)
+ Draws the screen and all the components in it.void
func_175391_a(ServerListEntryNormal parServerListEntryNormal, int parInt1, boolean parFlag)
boolean
func_175392_a(ServerListEntryNormal parServerListEntryNormal, int parInt1)
void
func_175393_b(ServerListEntryNormal parServerListEntryNormal, int parInt1, boolean parFlag)
boolean
func_175394_b(ServerListEntryNormal parServerListEntryNormal, int parInt1)
ServerList
getServerList()
void
handleMouseInput()
+ Handles mouse input.void
initGui()
+ Adds the buttons (and other controls) to the screen in question.protected void
keyTyped(char parChar1, int parInt1)
+ Fired when a key is typed (except F11 which toggles full screen).protected void
mouseClicked(int parInt1, int parInt2, int parInt3)
+ Called when the mouse is clicked.protected void
mouseReleased(int i, int j, int k)
+ Called when a mouse button is released.void
onGuiClosed()
+ Called when the screen is unloaded.void
refreshServerList()
void
selectServer(int index)
void
setHoveringText(java.lang.String parString1)
void
updateScreen()
+ Called from the main game loop to update the screen.-
Methods inherited from class net.minecraft.client.gui.GuiScreen
doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, getCloseKey, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
-
Methods inherited from class net.minecraft.client.gui.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
-
-
-
-
Constructor Detail
-
GuiMultiplayer
public GuiMultiplayer(GuiScreen parentScreen)
-
-
Method Detail
-
initGui
public void initGui()
+ Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the window resizes, the buttonList is cleared beforehand.
-
handleMouseInput
public void handleMouseInput() throws java.io.IOException
+ Handles mouse input.- Overrides:
handleMouseInput
in classGuiScreen
- Throws:
java.io.IOException
-
createButtons
public void createButtons()
-
updateScreen
public void updateScreen()
+ Called from the main game loop to update the screen.- Overrides:
updateScreen
in classGuiScreen
-
onGuiClosed
public void onGuiClosed()
+ Called when the screen is unloaded. Used to disable keyboard repeat events- Overrides:
onGuiClosed
in classGuiScreen
-
actionPerformed
protected void actionPerformed(GuiButton parGuiButton)
+ Called by the controls from the buttonList when activated. (Mouse pressed for buttons)- Overrides:
actionPerformed
in classGuiScreen
-
refreshServerList
public void refreshServerList()
-
confirmClicked
public void confirmClicked(boolean flag, int var2)
- Specified by:
confirmClicked
in interfaceGuiYesNoCallback
- Overrides:
confirmClicked
in classGuiScreen
-
keyTyped
protected void keyTyped(char parChar1, int parInt1)
+ Fired when a key is typed (except F11 which toggles full screen). This is the equivalent of KeyListener.keyTyped(KeyEvent e). Args : character (character on the key), keyCode (lwjgl Keyboard key code)
-
drawScreen
public void drawScreen(int i, int j, float f)
+ Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks- Overrides:
drawScreen
in classGuiScreen
-
connectToSelected
public void connectToSelected()
-
selectServer
public void selectServer(int index)
-
setHoveringText
public void setHoveringText(java.lang.String parString1)
-
mouseClicked
protected void mouseClicked(int parInt1, int parInt2, int parInt3)
+ Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton- Overrides:
mouseClicked
in classGuiScreen
-
mouseReleased
protected void mouseReleased(int i, int j, int k)
+ Called when a mouse button is released. Args : mouseX, mouseY, releaseButton- Overrides:
mouseReleased
in classGuiScreen
-
getServerList
public ServerList getServerList()
-
func_175392_a
public boolean func_175392_a(ServerListEntryNormal parServerListEntryNormal, int parInt1)
-
func_175394_b
public boolean func_175394_b(ServerListEntryNormal parServerListEntryNormal, int parInt1)
-
func_175391_a
public void func_175391_a(ServerListEntryNormal parServerListEntryNormal, int parInt1, boolean parFlag)
-
func_175393_b
public void func_175393_b(ServerListEntryNormal parServerListEntryNormal, int parInt1, boolean parFlag)
-
-