public class GuiScreenAddServer extends GuiScreen
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.base.Predicate<java.lang.String> |
field_181032_r |
private GuiScreen |
parentScreen |
private ServerData |
serverData |
private GuiTextField |
serverIPField |
private GuiTextField |
serverNameField |
private GuiButton |
serverResourcePacks |
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, widthicons, optionsBackground, statIcons, zLevel| Constructor and Description |
|---|
GuiScreenAddServer(GuiScreen p_i1033_1_,
ServerData p_i1033_2_) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
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).
|
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
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, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate final GuiScreen parentScreen
private final ServerData serverData
private GuiTextField serverIPField
private GuiTextField serverNameField
private GuiButton serverResourcePacks
private com.google.common.base.Predicate<java.lang.String> field_181032_r
public GuiScreenAddServer(GuiScreen p_i1033_1_, ServerData p_i1033_2_)
public void updateScreen()
updateScreen in class GuiScreenpublic void initGui()
public void onGuiClosed()
onGuiClosed in class GuiScreenprotected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
protected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiScreenjava.io.IOExceptionpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiScreen