Package net.minecraft.client.gui.screen
Class ConfirmScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ConfirmScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Direct Known Subclasses:
ClientCommonNetworkHandler.ConfirmServerResourcePackScreen
,ConfirmLinkScreen
,DeathScreen.TitleScreenConfirmScreen
,DialogScreen.WarningScreen
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/ConfirmScreen
intermediary net/minecraft/class_410
official gdq
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
protected final BooleanConsumer
protected DirectionalLayoutWidget
private final Text
protected @Nullable ButtonWidget
protected Text
protected @Nullable ButtonWidget
protected Text
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
ConstructorsConstructorDescriptionConfirmScreen
(BooleanConsumer callback, Text title, Text message) ConfirmScreen
(BooleanConsumer callback, Text title, Text message, Text yesText, Text noText) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addButtons
(DirectionalLayoutWidget layout) void
disableButtons
(int ticks) protected void
init()
Called when a screen should be initialized.protected void
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.protected void
boolean
Checks whether this screen should be closed when the escape key is pressed.void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, close, findSelectedElementData, getMusic, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldPause, showsStatusEffects, switchFocus, 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
-
message
- Mappings:
Namespace Name Mixin selector named message
Lnet/minecraft/client/gui/screen/ConfirmScreen;message:Lnet/minecraft/text/Text;
intermediary field_2401
Lnet/minecraft/class_410;field_2401:Lnet/minecraft/class_2561;
official u
Lgdq;u:Lxo;
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/gui/screen/ConfirmScreen;layout:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
intermediary field_61001
Lnet/minecraft/class_410;field_61001:Lnet/minecraft/class_8667;
official a
Lgdq;a:Lgbn;
-
yesText
- Mappings:
Namespace Name Mixin selector named yesText
Lnet/minecraft/client/gui/screen/ConfirmScreen;yesText:Lnet/minecraft/text/Text;
intermediary field_2402
Lnet/minecraft/class_410;field_2402:Lnet/minecraft/class_2561;
official b
Lgdq;b:Lxo;
-
noText
- Mappings:
Namespace Name Mixin selector named noText
Lnet/minecraft/client/gui/screen/ConfirmScreen;noText:Lnet/minecraft/text/Text;
intermediary field_2399
Lnet/minecraft/class_410;field_2399:Lnet/minecraft/class_2561;
official c
Lgdq;c:Lxo;
-
yesButton
- Mappings:
Namespace Name Mixin selector named yesButton
Lnet/minecraft/client/gui/screen/ConfirmScreen;yesButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_61002
Lnet/minecraft/class_410;field_61002:Lnet/minecraft/class_4185;
official d
Lgdq;d:Lfxn;
-
noButton
- Mappings:
Namespace Name Mixin selector named noButton
Lnet/minecraft/client/gui/screen/ConfirmScreen;noButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_61003
Lnet/minecraft/class_410;field_61003:Lnet/minecraft/class_4185;
official e
Lgdq;e:Lfxn;
-
buttonEnableTimer
private int buttonEnableTimer- Mappings:
Namespace Name Mixin selector named buttonEnableTimer
Lnet/minecraft/client/gui/screen/ConfirmScreen;buttonEnableTimer:I
intermediary field_2400
Lnet/minecraft/class_410;field_2400:I
official v
Lgdq;v:I
-
callback
- Mappings:
Namespace Name Mixin selector named callback
Lnet/minecraft/client/gui/screen/ConfirmScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
intermediary field_2403
Lnet/minecraft/class_410;field_2403:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
official f
Lgdq;f:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
-
Constructor Details
-
ConfirmScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/ConfirmScreen;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
intermediary <init>
Lnet/minecraft/class_410;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
official <init>
Lgdq;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lxo;Lxo;)V
-
ConfirmScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/ConfirmScreen;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
intermediary <init>
Lnet/minecraft/class_410;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
official <init>
Lgdq;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lxo;Lxo;Lxo;Lxo;)V
-
-
Method Details
-
getNarratedTitle
- Overrides:
getNarratedTitle
in classScreen
- Mappings:
Namespace Name Mixin selector named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
official i
Lges;i()Lxo;
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
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
-
initExtras
protected void initExtras()- Mappings:
Namespace Name Mixin selector named initExtras
Lnet/minecraft/client/gui/screen/ConfirmScreen;initExtras()V
intermediary method_72128
Lnet/minecraft/class_410;method_72128()V
official k
Lgdq;k()V
-
addButtons
- Mappings:
Namespace Name Mixin selector named addButtons
Lnet/minecraft/client/gui/screen/ConfirmScreen;addButtons(Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;)V
intermediary method_37051
Lnet/minecraft/class_410;method_37051(Lnet/minecraft/class_8667;)V
official a
Lgdq;a(Lgbn;)V
-
disableButtons
public void disableButtons(int ticks) - Mappings:
Namespace Name Mixin selector named disableButtons
Lnet/minecraft/client/gui/screen/ConfirmScreen;disableButtons(I)V
intermediary method_2125
Lnet/minecraft/class_410;method_2125(I)V
official a
Lgdq;a(I)V
-
tick
public void tick() -
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
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfzm;a(III)Z
-