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/ConfirmScreenintermediary net/minecraft/class_410official gli
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprotected final BooleanConsumerprotected DirectionalLayoutWidgetprivate final Textprotected @Nullable ButtonWidgetprotected Textprotected @Nullable ButtonWidgetprotected TextFields 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
ConstructorsConstructorDescriptionConfirmScreen(BooleanConsumer callback, Text title, Text message) ConfirmScreen(BooleanConsumer callback, Text title, Text message, Text yesText, Text noText) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddButtons(DirectionalLayoutWidget layout) voiddisableButtons(int ticks) protected voidinit()Called when a screen should be initialized.protected voidbooleankeyPressed(KeyInput input) Callback for when a key down event has been captured.protected voidbooleanChecks whether this screen should be closed when the escape key is pressed.voidtick()Methods 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, close, deferSubtitles, findSelectedElementData, getMusic, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldPause, showsStatusEffects, switchFocus, 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
-
message
- Mappings:
Namespace Name Mixin selector named messageLnet/minecraft/client/gui/screen/ConfirmScreen;message:Lnet/minecraft/text/Text;intermediary field_2401Lnet/minecraft/class_410;field_2401:Lnet/minecraft/class_2561;official tLgli;t:Lxx;
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/gui/screen/ConfirmScreen;layout:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;intermediary field_61001Lnet/minecraft/class_410;field_61001:Lnet/minecraft/class_8667;official aLgli;a:Lgjg;
-
yesText
- Mappings:
Namespace Name Mixin selector named yesTextLnet/minecraft/client/gui/screen/ConfirmScreen;yesText:Lnet/minecraft/text/Text;intermediary field_2402Lnet/minecraft/class_410;field_2402:Lnet/minecraft/class_2561;official bLgli;b:Lxx;
-
noText
- Mappings:
Namespace Name Mixin selector named noTextLnet/minecraft/client/gui/screen/ConfirmScreen;noText:Lnet/minecraft/text/Text;intermediary field_2399Lnet/minecraft/class_410;field_2399:Lnet/minecraft/class_2561;official cLgli;c:Lxx;
-
yesButton
- Mappings:
Namespace Name Mixin selector named yesButtonLnet/minecraft/client/gui/screen/ConfirmScreen;yesButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_61002Lnet/minecraft/class_410;field_61002:Lnet/minecraft/class_4185;official dLgli;d:Lgdp;
-
noButton
- Mappings:
Namespace Name Mixin selector named noButtonLnet/minecraft/client/gui/screen/ConfirmScreen;noButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_61003Lnet/minecraft/class_410;field_61003:Lnet/minecraft/class_4185;official eLgli;e:Lgdp;
-
buttonEnableTimer
private int buttonEnableTimer- Mappings:
Namespace Name Mixin selector named buttonEnableTimerLnet/minecraft/client/gui/screen/ConfirmScreen;buttonEnableTimer:Iintermediary field_2400Lnet/minecraft/class_410;field_2400:Iofficial uLgli;u:I
-
callback
- Mappings:
Namespace Name Mixin selector named callbackLnet/minecraft/client/gui/screen/ConfirmScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;intermediary field_2403Lnet/minecraft/class_410;field_2403:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;official fLgli;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;)Vintermediary <init>Lnet/minecraft/class_410;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Vofficial <init>Lgli;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lxx;Lxx;)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;)Vintermediary <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;)Vofficial <init>Lgli;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lxx;Lxx;Lxx;Lxx;)V
-
-
Method Details
-
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;official iLgmj;i()Lxx;
-
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:
refreshWidgetPositionsin classScreen- Mappings:
Namespace Name Mixin selector named refreshWidgetPositionsLnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()Vintermediary method_48640Lnet/minecraft/class_437;method_48640()Vofficial cLgmj;c()V
-
initExtras
protected void initExtras()- Mappings:
Namespace Name Mixin selector named initExtrasLnet/minecraft/client/gui/screen/ConfirmScreen;initExtras()Vintermediary method_72128Lnet/minecraft/class_410;method_72128()Vofficial lLgli;l()V
-
addButtons
- Mappings:
Namespace Name Mixin selector named addButtonsLnet/minecraft/client/gui/screen/ConfirmScreen;addButtons(Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;)Vintermediary method_37051Lnet/minecraft/class_410;method_37051(Lnet/minecraft/class_8667;)Vofficial aLgli;a(Lgjg;)V
-
disableButtons
public void disableButtons(int ticks) - Mappings:
Namespace Name Mixin selector named disableButtonsLnet/minecraft/client/gui/screen/ConfirmScreen;disableButtons(I)Vintermediary method_2125Lnet/minecraft/class_410;method_2125(I)Vofficial aLgli;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:
shouldCloseOnEscin classScreen- Mappings:
Namespace Name Mixin selector named shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Zofficial aY_Lgmj;aY_()Z
-
keyPressed
Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLggw;a(Lgth;)Z
-