@Environment(value=CLIENT) public class AddServerScreen extends Screen
Modifier and Type | Field and Description |
---|---|
private TextFieldWidget |
addressField |
private Predicate<String> |
addressTextFilter |
private ButtonWidget |
buttonAdd |
private it.unimi.dsi.fastutil.booleans.BooleanConsumer |
callback |
private static Text |
field_26541 |
private static Text |
field_26542 |
private Screen |
parent |
private ButtonWidget |
resourcePackOptionButton |
private ServerInfo |
server |
private TextFieldWidget |
serverNameField |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
AddServerScreen(Screen parent,
it.unimi.dsi.fastutil.booleans.BooleanConsumer callback,
ServerInfo server) |
Modifier and Type | Method and Description |
---|---|
private void |
addAndClose() |
protected void |
init()
Called when a screen should be initialized.
|
private static Text |
method_27570(ServerInfo.ResourcePackState resourcePackState) |
void |
onClose() |
private void |
onClose(String text) |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
void |
tick() |
private void |
updateButtonActiveState() |
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Text field_26541
private static final Text field_26542
private ButtonWidget buttonAdd
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
private final ServerInfo server
private TextFieldWidget addressField
private TextFieldWidget serverNameField
private ButtonWidget resourcePackOptionButton
private final Screen parent
public AddServerScreen(Screen parent, it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, ServerInfo server)
public void tick()
tick
in interface TickableElement
tick
in class Screen
protected void init()
This method is called when this screen is opened
or resized.
private static Text method_27570(ServerInfo.ResourcePackState resourcePackState)
public void resize(MinecraftClient client, int width, int height)
private void onClose(String text)
private void addAndClose()
private void updateButtonActiveState()
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)