Class AddServerScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.multiplayer.AddServerScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/multiplayer/AddServerScreenintermediary net/minecraft/class_422official gpe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ButtonWidgetprivate TextFieldWidgetprivate final BooleanConsumerprivate static final Textprivate static final Textprivate static final Textprivate final Screenprivate final ServerInfoprivate TextFieldWidgetFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width -
Constructor Summary
ConstructorsConstructorDescriptionAddServerScreen(Screen parent, Text text, BooleanConsumer booleanConsumer, ServerInfo serverInfo) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidclose()protected voidinit()Called when a screen should be initialized.voidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidresize(int int2, int int3) protected voidThis should be overridden with a call toScreen.setInitialFocus(Element)to set the element that is initially focused.private voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, switchFocus, tick, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, isClickable, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
ENTER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector named ENTER_NAME_TEXTLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;ENTER_NAME_TEXT:Lnet/minecraft/text/Text;intermediary field_26541Lnet/minecraft/class_422;field_26541:Lnet/minecraft/class_2561;official aLgpe;a:Lym;
-
ENTER_IP_TEXT
- Mappings:
Namespace Name Mixin selector named ENTER_IP_TEXTLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;ENTER_IP_TEXT:Lnet/minecraft/text/Text;intermediary field_26542Lnet/minecraft/class_422;field_26542:Lnet/minecraft/class_2561;official bLgpe;b:Lym;
-
field_62476
- Mappings:
Namespace Name Mixin selector named field_62476Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;field_62476:Lnet/minecraft/text/Text;intermediary field_62476Lnet/minecraft/class_422;field_62476:Lnet/minecraft/class_2561;official cLgpe;c:Lym;
-
addButton
- Mappings:
Namespace Name Mixin selector named addButtonLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;addButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2472Lnet/minecraft/class_422;field_2472:Lnet/minecraft/class_4185;official dLgpe;d:Lggq;
-
callback
- Mappings:
Namespace Name Mixin selector named callbackLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;intermediary field_19236Lnet/minecraft/class_422;field_19236:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;official eLgpe;e:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
server
- Mappings:
Namespace Name Mixin selector named serverLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;server:Lnet/minecraft/client/network/ServerInfo;intermediary field_2469Lnet/minecraft/class_422;field_2469:Lnet/minecraft/class_642;official fLgpe;f:Lhdj;
-
addressField
- Mappings:
Namespace Name Mixin selector named addressFieldLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;addressField:Lnet/minecraft/client/gui/widget/TextFieldWidget;intermediary field_2474Lnet/minecraft/class_422;field_2474:Lnet/minecraft/class_342;official tLgpe;t:Lggz;
-
serverNameField
- Mappings:
Namespace Name Mixin selector named serverNameFieldLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;serverNameField:Lnet/minecraft/client/gui/widget/TextFieldWidget;intermediary field_2471Lnet/minecraft/class_422;field_2471:Lnet/minecraft/class_342;official uLgpe;u:Lggz;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;parent:Lnet/minecraft/client/gui/screen/Screen;intermediary field_21791Lnet/minecraft/class_422;field_21791:Lnet/minecraft/class_437;official vLgpe;v:Lgpn;
-
-
Constructor Details
-
AddServerScreen
public AddServerScreen(Screen parent, Text text, BooleanConsumer booleanConsumer, ServerInfo serverInfo) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/client/network/ServerInfo;)Vintermediary <init>Lnet/minecraft/class_422;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_642;)Vofficial <init>Lgpe;<init>(Lgpn;Lym;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lhdj;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
setInitialFocus
protected void setInitialFocus()This should be overridden with a call toScreen.setInitialFocus(Element)to set the element that is initially focused.- Overrides:
setInitialFocusin classScreen- Mappings:
Namespace Name Mixin selector named setInitialFocusLnet/minecraft/client/gui/screen/Screen;setInitialFocus()Vintermediary method_56131Lnet/minecraft/class_437;method_56131()Vofficial aI_Lgpn;aI_()V
-
resize
public void resize(int int2, int int3) -
addAndClose
private void addAndClose()- Mappings:
Namespace Name Mixin selector named addAndCloseLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;addAndClose()Vintermediary method_2172Lnet/minecraft/class_422;method_2172()Vofficial oLgpe;o()V
-
close
public void close() -
updateAddButton
private void updateAddButton()- Mappings:
Namespace Name Mixin selector named updateAddButtonLnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;updateAddButton()Vintermediary method_36223Lnet/minecraft/class_422;method_36223()Vofficial pLgpe;p()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLghu;a(Lggd;IIF)V
-