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
,ParentElement
,TickableElement
@Environment(CLIENT) public class AddServerScreen extends Screen
- Mappings:
Namespace Name official dum
intermediary net/minecraft/class_422
named net/minecraft/client/gui/screen/AddServerScreen
-
Field Summary
Fields Modifier and Type Field Description private TextFieldWidget
addressField
private Predicate<String>
addressTextFilter
private ButtonWidget
buttonAdd
private BooleanConsumer
callback
private static Text
ENTER_IP_TEXT
private static Text
ENTER_NAME_TEXT
private Screen
parent
private ServerInfo
server
private TextFieldWidget
serverNameField
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description AddServerScreen(Screen parent, BooleanConsumer callback, ServerInfo server)
-
Method Summary
Modifier and Type Method Description private void
addAndClose()
protected void
init()
Called when a screen should be initialized.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()
Methods inherited from class net.minecraft.client.gui.screen.Screen
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, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
ENTER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector official a
Ldum;a:Loi;
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
Ldum;b:Loi;
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;
-
buttonAdd
- Mappings:
Namespace Name Mixin selector official c
Ldum;c:Ldru;
intermediary field_2472
Lnet/minecraft/class_422;field_2472:Lnet/minecraft/class_4185;
named buttonAdd
Lnet/minecraft/client/gui/screen/AddServerScreen;buttonAdd:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
callback
- Mappings:
Namespace Name Mixin selector official p
Ldum;p: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 q
Ldum;q:Leee;
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 r
Ldum;r:Ldsc;
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 s
Ldum;s:Ldsc;
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 t
Ldum;t:Ldve;
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;
-
addressTextFilter
- Mappings:
Namespace Name Mixin selector official u
Ldum;u:Ljava/util/function/Predicate;
intermediary field_2475
Lnet/minecraft/class_422;field_2475:Ljava/util/function/Predicate;
named addressTextFilter
Lnet/minecraft/client/gui/screen/AddServerScreen;addressTextFilter:Ljava/util/function/Predicate;
-
-
Constructor Details
-
AddServerScreen
- Mappings:
Namespace Name Mixin selector official <init>
Ldum;<init>(Ldve;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Leee;)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()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
resize
-
onClose
- Mappings:
Namespace Name Mixin selector official b
Ldum;b(Ljava/lang/String;)V
intermediary method_2171
Lnet/minecraft/class_422;method_2171(Ljava/lang/String;)V
named onClose
Lnet/minecraft/client/gui/screen/AddServerScreen;onClose(Ljava/lang/String;)V
-
removed
public void removed() -
addAndClose
private void addAndClose()- Mappings:
Namespace Name Mixin selector official h
Ldum;h()V
intermediary method_2172
Lnet/minecraft/class_422;method_2172()V
named addAndClose
Lnet/minecraft/client/gui/screen/AddServerScreen;addAndClose()V
-
onClose
public void onClose() -
updateButtonActiveState
private void updateButtonActiveState()- Mappings:
Namespace Name Mixin selector official i
Ldum;i()V
intermediary method_24183
Lnet/minecraft/class_422;method_24183()V
named updateButtonActiveState
Lnet/minecraft/client/gui/screen/AddServerScreen;updateButtonActiveState()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;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
-