@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, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_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()
Called when a screen should be initialized.
|
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
private void |
setStatus(Text status) |
boolean |
shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.
|
void |
tick() |
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, 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 void tick()
tick in interface TickableElementtick in class Screenpublic boolean shouldCloseOnEsc()
shouldCloseOnEsc in class Screenprotected void init()
This method is called when this screen is opened or resized.
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)