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,MultiActionInputFormDialogScreen,SimpleDialogScreen,SimpleInputFormDialogScreen
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/dialog/DialogScreenintermediary net/minecraft/class_11473official gfi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable ScrollableLayoutWidgetstatic final Textprivate final Tprivate static final intprivate final ThreePartsLayoutWidgetprivate final DialogNetworkAccessprivate 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, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionDialogScreen(@Nullable Screen parent, T dialog, DialogNetworkAccess networkAccess) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected ButtonWidget.BuildercreateButtonWidget(DialogButton dialogButton) static ButtonWidget.BuildercreateButtonWidget(DialogButtonData dialogButtonData, ButtonWidget.PressAction pressAction) protected static WidgetcreateGridWidget(List<? extends Widget> widgets, int columns) protected Widgetprivate ButtonWidgetprivate voidhandleClickEvent(ClickEvent clickEvent) protected final voidinit()Called when a screen should be initialized.protected voidinitBody(DirectionalLayoutWidget bodyLayout, T dialog, DialogNetworkAccess networkAccess) protected voidinitDialog(T dialog, DialogNetworkAccess networkAccess) protected voidinitHeaderAndFooter(ThreePartsLayoutWidget layout, T dialog, DialogNetworkAccess networkAccess) private voidonButtonClick(Optional<ClickEvent> clickEvent) protected voidprotected voidbooleanChecks whether this screen should be closed when the escape key is pressed.Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldHideStatusEffectHud, shouldPause, 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, 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 cLgfi;c:Lxo;
-
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 aLgfi;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 bLgfi;b:Lfzd;
-
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 dLgfi;d:Lart;
-
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 rLgfi;r:Lgbk;
-
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 sLgfi;s:Lger;
-
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 uLgfi;u:Lfyt;
-
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 vLgfi;v:Lfxo;
-
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 wLgfi;w:Lgfg;
-
-
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>Lgfi;<init>(Lger;Lart;Lgfg;)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.
-
initDialog
- Mappings:
Namespace Name Mixin selector named initDialogLnet/minecraft/client/gui/screen/dialog/DialogScreen;initDialog(Lnet/minecraft/dialog/type/Dialog;Lnet/minecraft/client/gui/screen/dialog/DialogNetworkAccess;)Vintermediary method_71864Lnet/minecraft/class_11473;method_71864(Lnet/minecraft/class_11419;Lnet/minecraft/class_11513;)Vofficial aLgfi;a(Lart;Lgfg;)V
-
initBody
protected void initBody(DirectionalLayoutWidget bodyLayout, 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/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_11419;Lnet/minecraft/class_11513;)Vofficial aLgfi;a(Lgbo;Lart;Lgfg;)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 cLger;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 lLgfi;l()Lgbm;
-
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 mLgfi;m()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 ELgfi;E()Lfxo;
-
createButtonWidget
public static ButtonWidget.Builder createButtonWidget(DialogButtonData dialogButtonData, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector named createButtonWidgetLnet/minecraft/client/gui/screen/dialog/DialogScreen;createButtonWidget(Lnet/minecraft/dialog/DialogButtonData;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;intermediary method_71863Lnet/minecraft/class_11473;method_71863(Lnet/minecraft/class_11416;Lnet/minecraft/class_4185$class_4241;)Lnet/minecraft/class_4185$class_7840;official aLgfi;a(Larq;Lfxo$c;)Lfxo$a;
-
createButtonWidget
- Mappings:
Namespace Name Mixin selector named createButtonWidgetLnet/minecraft/client/gui/screen/dialog/DialogScreen;createButtonWidget(Lnet/minecraft/dialog/DialogButton;)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;intermediary method_71861Lnet/minecraft/class_11473;method_71861(Lnet/minecraft/class_11415;)Lnet/minecraft/class_4185$class_7840;official aLgfi;a(Larp;)Lfxo$a;
-
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 aG_Lger;aG_()Z
-
close
public void close() -
onButtonClick
- Mappings:
Namespace Name Mixin selector named onButtonClickLnet/minecraft/client/gui/screen/dialog/DialogScreen;onButtonClick(Ljava/util/Optional;)Vintermediary method_71868Lnet/minecraft/class_11473;method_71868(Ljava/util/Optional;)Vofficial aLgfi;a(Ljava/util/Optional;)V
-
handleClickEvent
- Mappings:
Namespace Name Mixin selector named handleClickEventLnet/minecraft/client/gui/screen/dialog/DialogScreen;handleClickEvent(Lnet/minecraft/text/ClickEvent;)Vintermediary method_72006Lnet/minecraft/class_11473;method_72006(Lnet/minecraft/class_2558;)Vofficial aLgfi;a(Lxm;)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 nLgfi;n()Lger;
-
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 aLgfi;a(Ljava/util/List;I)Lgbm;
-