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/DialogScreen
intermediary net/minecraft/class_11473
official gfk
-
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 @Nullable ScrollableLayoutWidget
static final Text
private final T
private static final int
private final ThreePartsLayoutWidget
private final DialogNetworkAccess
private static final ButtonTextures
private ButtonWidget
Fields 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
Fields 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 TypeMethodDescriptionvoid
close()
protected static Widget
createGridWidget
(List<? extends Widget> widgets, int columns) protected Widget
private ButtonWidget
private void
handleClickEvent
(ClickEvent clickEvent, @Nullable Screen afterActionScreen) protected final void
init()
Called when a screen should be initialized.protected void
initBody
(DirectionalLayoutWidget bodyLayout, DialogControls controls, T dialog, DialogNetworkAccess networkAccess) protected void
initHeaderAndFooter
(ThreePartsLayoutWidget layout, DialogControls controls, T dialog, DialogNetworkAccess networkAccess) protected void
protected void
void
runAction
(Optional<ClickEvent> clickEvent) void
runAction
(Optional<ClickEvent> clickEvent, AfterAction afterAction) boolean
Checks whether this screen should be closed when the escape key is pressed.boolean
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, showsStatusEffects, switchFocus, tick, updateNarrator
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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
getBorder, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods 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_TEXT
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;CUSTOM_SCREEN_REJECTED_DISCONNECT_TEXT:Lnet/minecraft/text/Text;
intermediary field_60760
Lnet/minecraft/class_11473;field_60760:Lnet/minecraft/class_2561;
official b
Lgfk;b:Lxo;
-
field_60758
private static final int field_60758- See Also:
- Mappings:
Namespace Name Mixin selector named field_60758
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;field_60758:I
intermediary field_60758
Lnet/minecraft/class_11473;field_60758:I
official a
Lgfk;a:I
-
WARNING_BUTTON_TEXTURES
- Mappings:
Namespace Name Mixin selector named WARNING_BUTTON_TEXTURES
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;WARNING_BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
intermediary field_60759
Lnet/minecraft/class_11473;field_60759:Lnet/minecraft/class_8666;
official c
Lgfk;c:Lfzc;
-
dialog
- Mappings:
Namespace Name Mixin selector named dialog
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;dialog:Lnet/minecraft/dialog/type/Dialog;
intermediary field_60761
Lnet/minecraft/class_11473;field_60761:Lnet/minecraft/class_11419;
official d
Lgfk;d:Lart;
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
intermediary field_60762
Lnet/minecraft/class_11473;field_60762:Lnet/minecraft/class_8132;
official e
Lgfk;e:Lgbj;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_60763
Lnet/minecraft/class_11473;field_60763:Lnet/minecraft/class_437;
official f
Lgfk;f:Lges;
-
contents
- Mappings:
Namespace Name Mixin selector named contents
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;contents:Lnet/minecraft/client/gui/widget/ScrollableLayoutWidget;
intermediary field_60764
Lnet/minecraft/class_11473;field_60764:Lnet/minecraft/class_11467;
official u
Lgfk;u:Lfys;
-
warningButton
- Mappings:
Namespace Name Mixin selector named warningButton
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;warningButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_60765
Lnet/minecraft/class_11473;field_60765:Lnet/minecraft/class_4185;
official v
Lgfk;v:Lfxn;
-
networkAccess
- Mappings:
Namespace Name Mixin selector named networkAccess
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;networkAccess:Lnet/minecraft/client/gui/screen/dialog/DialogNetworkAccess;
intermediary field_60874
Lnet/minecraft/class_11473;field_60874:Lnet/minecraft/class_11513;
official w
Lgfk;w:Lgfh;
-
cancelAction
- Mappings:
Namespace Name Mixin selector named cancelAction
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;cancelAction:Ljava/util/function/Supplier;
intermediary field_61008
Lnet/minecraft/class_11473;field_61008:Ljava/util/function/Supplier;
official x
Lgfk;x: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;)V
intermediary <init>
Lnet/minecraft/class_11473;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_11419;Lnet/minecraft/class_11513;)V
official <init>
Lgfk;<init>(Lges;Lart;Lgfh;)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 initBody
Lnet/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;)V
intermediary method_71853
Lnet/minecraft/class_11473;method_71853(Lnet/minecraft/class_8667;Lnet/minecraft/class_11529;Lnet/minecraft/class_11419;Lnet/minecraft/class_11513;)V
official a
Lgfk;a(Lgbn;Lgfi;Lart;Lgfh;)V
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositions
in classScreen
- Mappings:
Namespace Name Mixin selector named refreshWidgetPositions
Lnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()V
intermediary method_48640
Lnet/minecraft/class_437;method_48640()V
official c
Lges;c()V
-
createHeader
- Mappings:
Namespace Name Mixin selector named createHeader
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;createHeader()Lnet/minecraft/client/gui/widget/Widget;
intermediary method_71872
Lnet/minecraft/class_11473;method_71872()Lnet/minecraft/class_8021;
official l
Lgfk;l()Lgbl;
-
resetWarningButtonPosition
protected void resetWarningButtonPosition()- Mappings:
Namespace Name Mixin selector named resetWarningButtonPosition
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;resetWarningButtonPosition()V
intermediary method_71873
Lnet/minecraft/class_11473;method_71873()V
official m
Lgfk;m()V
-
createWarningButton
- Mappings:
Namespace Name Mixin selector named createWarningButton
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;createWarningButton()Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary method_71860
Lnet/minecraft/class_11473;method_71860()Lnet/minecraft/class_4185;
official E
Lgfk;E()Lfxn;
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
official aQ_
Lges;aQ_()Z
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEsc
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
official aG_
Lges;aG_()Z
-
close
public void close() -
runAction
- Mappings:
Namespace Name Mixin selector named runAction
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;runAction(Ljava/util/Optional;)V
intermediary method_72141
Lnet/minecraft/class_11473;method_72141(Ljava/util/Optional;)V
official a
Lgfk;a(Ljava/util/Optional;)V
-
runAction
- Mappings:
Namespace Name Mixin selector named runAction
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;runAction(Ljava/util/Optional;Lnet/minecraft/dialog/AfterAction;)V
intermediary method_72142
Lnet/minecraft/class_11473;method_72142(Ljava/util/Optional;Lnet/minecraft/class_11520;)V
official a
Lgfk;a(Ljava/util/Optional;Laru;)V
-
handleClickEvent
- Mappings:
Namespace Name Mixin selector named handleClickEvent
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;handleClickEvent(Lnet/minecraft/text/ClickEvent;Lnet/minecraft/client/gui/screen/Screen;)V
intermediary method_72006
Lnet/minecraft/class_11473;method_72006(Lnet/minecraft/class_2558;Lnet/minecraft/class_437;)V
official a
Lgfk;a(Lxm;Lges;)V
-
getParentScreen
- Mappings:
Namespace Name Mixin selector named getParentScreen
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;getParentScreen()Lnet/minecraft/client/gui/screen/Screen;
intermediary method_71859
Lnet/minecraft/class_11473;method_71859()Lnet/minecraft/class_437;
official n
Lgfk;n()Lges;
-
createGridWidget
- Mappings:
Namespace Name Mixin selector named createGridWidget
Lnet/minecraft/client/gui/screen/dialog/DialogScreen;createGridWidget(Ljava/util/List;I)Lnet/minecraft/client/gui/widget/Widget;
intermediary method_71867
Lnet/minecraft/class_11473;method_71867(Ljava/util/List;I)Lnet/minecraft/class_8021;
official a
Lgfk;a(Ljava/util/List;I)Lgbl;
-