Package net.minecraft.client.gui.screen
Class DisconnectedScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.DisconnectedScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name official ewxintermediary net/minecraft/class_419named net/minecraft/client/gui/screen/DisconnectedScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Textprivate final DirectionalLayoutWidgetprivate final Screenprivate final Textprivate static final Textprivate static final TextFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionDisconnectedScreen(Screen parent, Text title, Text reason) DisconnectedScreen(Screen parent, Text title, Text reason, Text buttonLabel) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()Called when a screen should be initialized.protected voidbooleanChecks whether this screen should be closed when the escape key is pressed.Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, render, renderBackground, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
TO_MENU_TEXT
- Mappings:
Namespace Name Mixin selector official aLewx;a:Lte;intermediary field_44549Lnet/minecraft/class_419;field_44549:Lnet/minecraft/class_2561;named TO_MENU_TEXTLnet/minecraft/client/gui/screen/DisconnectedScreen;TO_MENU_TEXT:Lnet/minecraft/text/Text;
-
TO_TITLE_TEXT
- Mappings:
Namespace Name Mixin selector official bLewx;b:Lte;intermediary field_44550Lnet/minecraft/class_419;field_44550:Lnet/minecraft/class_2561;named TO_TITLE_TEXTLnet/minecraft/client/gui/screen/DisconnectedScreen;TO_TITLE_TEXT:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official cLewx;c:Lexv;intermediary field_2456Lnet/minecraft/class_419;field_2456:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/DisconnectedScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
reason
- Mappings:
Namespace Name Mixin selector official kLewx;k:Lte;intermediary field_2457Lnet/minecraft/class_419;field_2457:Lnet/minecraft/class_2561;named reasonLnet/minecraft/client/gui/screen/DisconnectedScreen;reason:Lnet/minecraft/text/Text;
-
buttonLabel
- Mappings:
Namespace Name Mixin selector official lLewx;l:Lte;intermediary field_44551Lnet/minecraft/class_419;field_44551:Lnet/minecraft/class_2561;named buttonLabelLnet/minecraft/client/gui/screen/DisconnectedScreen;buttonLabel:Lnet/minecraft/text/Text;
-
grid
- Mappings:
Namespace Name Mixin selector official mLewx;m:Levo;intermediary field_44552Lnet/minecraft/class_419;field_44552:Lnet/minecraft/class_8667;named gridLnet/minecraft/client/gui/screen/DisconnectedScreen;grid:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
-
-
Constructor Details
-
DisconnectedScreen
- Mappings:
Namespace Name Mixin selector official <init>Lewx;<init>(Lexv;Lte;Lte;)Vintermediary <init>Lnet/minecraft/class_419;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/gui/screen/DisconnectedScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
-
DisconnectedScreen
- Mappings:
Namespace Name Mixin selector official <init>Lewx;<init>(Lexv;Lte;Lte;Lte;)Vintermediary <init>Lnet/minecraft/class_419;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/gui/screen/DisconnectedScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)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.
This should call
Screen.setInitialFocus(net.minecraft.client.gui.Element)to set the element that is initially focused. -
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector official eLexv;e()Lte;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEscin classScreen- Mappings:
Namespace Name Mixin selector official aA_Lexv;aA_()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Znamed shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
-