Class DialogScreen<T extends Dialog>
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.dialog.DialogScreen<T>
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Direct Known Subclasses:
ColumnsDialogScreen,SimpleDialogScreen
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/dialog/DialogScreenintermediary net/minecraft/class_11473official grm
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Supplier<Optional<ClickEvent>> private ScrollableLayoutWidgetstatic final Textprivate final Tprivate static final intprivate final ThreePartsLayoutWidgetprivate final DialogNetworkAccessprivate final Screenprivate static final ButtonTexturesprivate ButtonWidgetFields 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
ConstructorsConstructorDescriptionDialogScreen(@Nullable Screen parent, T dialog, DialogNetworkAccess networkAccess) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected static WidgetcreateGridWidget(List<? extends Widget> widgets, int columns) protected Widgetprivate ButtonWidget@Nullable Screenprivate voidhandleClickEvent(ClickEvent clickEvent, @Nullable Screen afterActionScreen) protected final voidinit()Called when a screen should be initialized.protected voidinitBody(DirectionalLayoutWidget bodyLayout, DialogControls controls, T dialog, DialogNetworkAccess networkAccess) protected voidinitHeaderAndFooter(ThreePartsLayoutWidget layout, DialogControls controls, T dialog, DialogNetworkAccess networkAccess) protected voidprotected voidvoidrunAction(Optional<ClickEvent> clickEvent) voidrunAction(Optional<ClickEvent> clickEvent, AfterAction afterAction) booleanChecks whether this screen should be closed when the escape key is pressed.booleanMethods 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, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, 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
-
CUSTOM_SCREEN_REJECTED_DISCONNECT_TEXT
- Mappings:
Namespace Name Mixin selector named CUSTOM_SCREEN_REJECTED_DISCONNECT_TEXTLnet/minecraft/client/gui/screen/dialog/DialogScreen;CUSTOM_SCREEN_REJECTED_DISCONNECT_TEXT:Lnet/minecraft/text/Text;intermediary field_60760Lnet/minecraft/class_11473;field_60760:Lnet/minecraft/class_2561;official bLgrm;b:Lyh;
-
field_60758
private static final int field_60758- See Also:
- Mappings:
Namespace Name Mixin selector named field_60758Lnet/minecraft/client/gui/screen/dialog/DialogScreen;field_60758:Iintermediary field_60758Lnet/minecraft/class_11473;field_60758:Iofficial aLgrm;a:I
-
WARNING_BUTTON_TEXTURES
- Mappings:
Namespace Name Mixin selector named WARNING_BUTTON_TEXTURESLnet/minecraft/client/gui/screen/dialog/DialogScreen;WARNING_BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;intermediary field_60759Lnet/minecraft/class_11473;field_60759:Lnet/minecraft/class_8666;official cLgrm;c:Lgjm;
-
dialog
- Mappings:
Namespace Name Mixin selector named dialogLnet/minecraft/client/gui/screen/dialog/DialogScreen;dialog:Lnet/minecraft/dialog/type/Dialog;intermediary field_60761Lnet/minecraft/class_11473;field_60761:Lnet/minecraft/class_11419;official dLgrm;d:Lasj;
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/gui/screen/dialog/DialogScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;intermediary field_60762Lnet/minecraft/class_11473;field_60762:Lnet/minecraft/class_8132;official eLgrm;e:Lgnm;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/client/gui/screen/dialog/DialogScreen;parent:Lnet/minecraft/client/gui/screen/Screen;intermediary field_60763Lnet/minecraft/class_11473;field_60763:Lnet/minecraft/class_437;official fLgrm;f:Lgqt;
-
contents
- Mappings:
Namespace Name Mixin selector named contentsLnet/minecraft/client/gui/screen/dialog/DialogScreen;contents:Lnet/minecraft/client/gui/widget/ScrollableLayoutWidget;intermediary field_60764Lnet/minecraft/class_11473;field_60764:Lnet/minecraft/class_11467;official tLgrm;t:Lgjb;
-
warningButton
- Mappings:
Namespace Name Mixin selector named warningButtonLnet/minecraft/client/gui/screen/dialog/DialogScreen;warningButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_60765Lnet/minecraft/class_11473;field_60765:Lnet/minecraft/class_4185;official uLgrm;u:Lghv;
-
networkAccess
- Mappings:
Namespace Name Mixin selector named networkAccessLnet/minecraft/client/gui/screen/dialog/DialogScreen;networkAccess:Lnet/minecraft/client/gui/screen/dialog/DialogNetworkAccess;intermediary field_60874Lnet/minecraft/class_11473;field_60874:Lnet/minecraft/class_11513;official vLgrm;v:Lgrj;
-
cancelAction
- Mappings:
Namespace Name Mixin selector named cancelActionLnet/minecraft/client/gui/screen/dialog/DialogScreen;cancelAction:Ljava/util/function/Supplier;intermediary field_61008Lnet/minecraft/class_11473;field_61008:Ljava/util/function/Supplier;official wLgrm;w:Ljava/util/function/Supplier;
-
-
Constructor Details
-
DialogScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/dialog/DialogScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/dialog/type/Dialog;Lnet/minecraft/client/gui/screen/dialog/DialogNetworkAccess;)Vintermediary <init>Lnet/minecraft/class_11473;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_11419;Lnet/minecraft/class_11513;)Vofficial <init>Lgrm;<init>(Lgqt;Lasj;Lgrj;)V
-
-
Method Details
-
init
protected final void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
initBody
protected void initBody(DirectionalLayoutWidget bodyLayout, DialogControls controls, T dialog, DialogNetworkAccess networkAccess) - Mappings:
Namespace Name Mixin selector named initBodyLnet/minecraft/client/gui/screen/dialog/DialogScreen;initBody(Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;Lnet/minecraft/client/gui/screen/dialog/DialogControls;Lnet/minecraft/dialog/type/Dialog;Lnet/minecraft/client/gui/screen/dialog/DialogNetworkAccess;)Vintermediary method_71853Lnet/minecraft/class_11473;method_71853(Lnet/minecraft/class_8667;Lnet/minecraft/class_11529;Lnet/minecraft/class_11419;Lnet/minecraft/class_11513;)Vofficial aLgrm;a(Lgnq;Lgrk;Lasj;Lgrj;)V
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositionsin classScreen- Mappings:
Namespace Name Mixin selector named refreshWidgetPositionsLnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()Vintermediary method_48640Lnet/minecraft/class_437;method_48640()Vofficial cLgqt;c()V
-
createHeader
- Mappings:
Namespace Name Mixin selector named createHeaderLnet/minecraft/client/gui/screen/dialog/DialogScreen;createHeader()Lnet/minecraft/client/gui/widget/Widget;intermediary method_71872Lnet/minecraft/class_11473;method_71872()Lnet/minecraft/class_8021;official oLgrm;o()Lgno;
-
resetWarningButtonPosition
protected void resetWarningButtonPosition()- Mappings:
Namespace Name Mixin selector named resetWarningButtonPositionLnet/minecraft/client/gui/screen/dialog/DialogScreen;resetWarningButtonPosition()Vintermediary method_71873Lnet/minecraft/class_11473;method_71873()Vofficial pLgrm;p()V
-
createWarningButton
- Mappings:
Namespace Name Mixin selector named createWarningButtonLnet/minecraft/client/gui/screen/dialog/DialogScreen;createWarningButton()Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary method_71860Lnet/minecraft/class_11473;method_71860()Lnet/minecraft/class_4185;official ILgrm;I()Lghv;
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector named shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Zofficial aZ_Lgqt;aZ_()Z
-
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 named shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Zofficial aX_Lgqt;aX_()Z
-
close
public void close() -
runAction
- Mappings:
Namespace Name Mixin selector named runActionLnet/minecraft/client/gui/screen/dialog/DialogScreen;runAction(Ljava/util/Optional;)Vintermediary method_72141Lnet/minecraft/class_11473;method_72141(Ljava/util/Optional;)Vofficial aLgrm;a(Ljava/util/Optional;)V
-
runAction
- Mappings:
Namespace Name Mixin selector named runActionLnet/minecraft/client/gui/screen/dialog/DialogScreen;runAction(Ljava/util/Optional;Lnet/minecraft/dialog/AfterAction;)Vintermediary method_72142Lnet/minecraft/class_11473;method_72142(Ljava/util/Optional;Lnet/minecraft/class_11520;)Vofficial aLgrm;a(Ljava/util/Optional;Lask;)V
-
handleClickEvent
- Mappings:
Namespace Name Mixin selector named handleClickEventLnet/minecraft/client/gui/screen/dialog/DialogScreen;handleClickEvent(Lnet/minecraft/text/ClickEvent;Lnet/minecraft/client/gui/screen/Screen;)Vintermediary method_72006Lnet/minecraft/class_11473;method_72006(Lnet/minecraft/class_2558;Lnet/minecraft/class_437;)Vofficial aLgrm;a(Lyf;Lgqt;)V
-
getParentScreen
- Mappings:
Namespace Name Mixin selector named getParentScreenLnet/minecraft/client/gui/screen/dialog/DialogScreen;getParentScreen()Lnet/minecraft/client/gui/screen/Screen;intermediary method_71859Lnet/minecraft/class_11473;method_71859()Lnet/minecraft/class_437;official FLgrm;F()Lgqt;
-
createGridWidget
- Mappings:
Namespace Name Mixin selector named createGridWidgetLnet/minecraft/client/gui/screen/dialog/DialogScreen;createGridWidget(Ljava/util/List;I)Lnet/minecraft/client/gui/widget/Widget;intermediary method_71867Lnet/minecraft/class_11473;method_71867(Ljava/util/List;I)Lnet/minecraft/class_8021;official aLgrm;a(Ljava/util/List;I)Lgno;
-