public class GuiConnecting extends GuiScreen
Modifier and Type | Field and Description |
---|---|
private boolean |
cancel |
private static java.util.concurrent.atomic.AtomicInteger |
CONNECTION_ID |
private static org.apache.logging.log4j.Logger |
logger |
private NetworkManager |
networkManager |
private GuiScreen |
previousGuiScreen |
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiConnecting(GuiScreen p_i1181_1_,
Minecraft mcIn,
ServerData p_i1181_3_) |
GuiConnecting(GuiScreen p_i1182_1_,
Minecraft mcIn,
java.lang.String hostName,
int port) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
private void |
connect(java.lang.String ip,
int port) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
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).
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
confirmClicked, doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final java.util.concurrent.atomic.AtomicInteger CONNECTION_ID
private static final org.apache.logging.log4j.Logger logger
private NetworkManager networkManager
private boolean cancel
private final GuiScreen previousGuiScreen
public GuiConnecting(GuiScreen p_i1181_1_, Minecraft mcIn, ServerData p_i1181_3_)
private void connect(java.lang.String ip, int port)
public void updateScreen()
updateScreen
in class GuiScreen
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
public void initGui()
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen