Package net.minecraft.client.gui.screen
Class AddServerScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.AddServerScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name official esi
intermediary net/minecraft/class_422
named net/minecraft/client/gui/screen/AddServerScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate ButtonWidget
private TextFieldWidget
private final BooleanConsumer
private static final Text
private static final Text
private final Screen
private final ServerInfo
private TextFieldWidget
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
close()
protected void
init()
Called when a screen should be initialized.void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) void
resize
(MinecraftClient client, int width, int height) void
tick()
private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
ENTER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector official a
Lesi;a:Ltj;
intermediary field_26541
Lnet/minecraft/class_422;field_26541:Lnet/minecraft/class_2561;
named ENTER_NAME_TEXT
Lnet/minecraft/client/gui/screen/AddServerScreen;ENTER_NAME_TEXT:Lnet/minecraft/text/Text;
-
ENTER_IP_TEXT
- Mappings:
Namespace Name Mixin selector official b
Lesi;b:Ltj;
intermediary field_26542
Lnet/minecraft/class_422;field_26542:Lnet/minecraft/class_2561;
named ENTER_IP_TEXT
Lnet/minecraft/client/gui/screen/AddServerScreen;ENTER_IP_TEXT:Lnet/minecraft/text/Text;
-
addButton
- Mappings:
Namespace Name Mixin selector official c
Lesi;c:Leoc;
intermediary field_2472
Lnet/minecraft/class_422;field_2472:Lnet/minecraft/class_4185;
named addButton
Lnet/minecraft/client/gui/screen/AddServerScreen;addButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
callback
- Mappings:
Namespace Name Mixin selector official o
Lesi;o:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
intermediary field_19236
Lnet/minecraft/class_422;field_19236:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
named callback
Lnet/minecraft/client/gui/screen/AddServerScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
server
- Mappings:
Namespace Name Mixin selector official p
Lesi;p:Lfdq;
intermediary field_2469
Lnet/minecraft/class_422;field_2469:Lnet/minecraft/class_642;
named server
Lnet/minecraft/client/gui/screen/AddServerScreen;server:Lnet/minecraft/client/network/ServerInfo;
-
addressField
- Mappings:
Namespace Name Mixin selector official q
Lesi;q:Leol;
intermediary field_2474
Lnet/minecraft/class_422;field_2474:Lnet/minecraft/class_342;
named addressField
Lnet/minecraft/client/gui/screen/AddServerScreen;addressField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
serverNameField
- Mappings:
Namespace Name Mixin selector official r
Lesi;r:Leol;
intermediary field_2471
Lnet/minecraft/class_422;field_2471:Lnet/minecraft/class_342;
named serverNameField
Lnet/minecraft/client/gui/screen/AddServerScreen;serverNameField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
parent
- Mappings:
Namespace Name Mixin selector official s
Lesi;s:Letd;
intermediary field_21791
Lnet/minecraft/class_422;field_21791:Lnet/minecraft/class_437;
named parent
Lnet/minecraft/client/gui/screen/AddServerScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
-
Constructor Details
-
AddServerScreen
- Mappings:
Namespace Name Mixin selector official <init>
Lesi;<init>(Letd;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lfdq;)V
intermediary <init>
Lnet/minecraft/class_422;<init>(Lnet/minecraft/class_437;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_642;)V
named <init>
Lnet/minecraft/client/gui/screen/AddServerScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/client/network/ServerInfo;)V
-
-
Method Details
-
tick
public void tick() -
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
This should call
Screen.setInitialFocus(net.minecraft.client.gui.Element)
to set the element that is initially focused. -
resize
-
addAndClose
private void addAndClose()- Mappings:
Namespace Name Mixin selector official m
Lesi;m()V
intermediary method_2172
Lnet/minecraft/class_422;method_2172()V
named addAndClose
Lnet/minecraft/client/gui/screen/AddServerScreen;addAndClose()V
-
close
public void close() -
updateAddButton
private void updateAddButton()- Mappings:
Namespace Name Mixin selector official B
Lesi;B()V
intermediary method_36223
Lnet/minecraft/class_422;method_36223()V
named updateAddButton
Lnet/minecraft/client/gui/screen/AddServerScreen;updateAddButton()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lepa;a(Lehe;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-