@Environment(value=CLIENT) public class ConnectScreen extends Screen
| Modifier and Type | Field and Description |
|---|---|
private boolean |
connectingCancelled |
private ClientConnection |
connection |
private static AtomicInteger |
CONNECTOR_THREADS_COUNT |
private static Logger |
LOGGER |
private long |
narratorTimer |
private Screen |
parent |
private Text |
status |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ConnectScreen(Screen parent,
MinecraftClient client,
ServerInfo entry) |
ConnectScreen(Screen parent,
MinecraftClient client,
String address,
int port) |
| Modifier and Type | Method and Description |
|---|---|
private void |
connect(String address,
int port) |
protected void |
init() |
void |
render(int mouseX,
int mouseY,
float delta) |
private void |
setStatus(Text status) |
boolean |
shouldCloseOnEsc() |
void |
tick() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final AtomicInteger CONNECTOR_THREADS_COUNT
private static final Logger LOGGER
private ClientConnection connection
private boolean connectingCancelled
private final Screen parent
private Text status
private long narratorTimer
public ConnectScreen(Screen parent, MinecraftClient client, ServerInfo entry)
public ConnectScreen(Screen parent, MinecraftClient client, String address, int port)
private void connect(String address, int port)
private void setStatus(Text status)
public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class Screen