Class BackupPromptScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.world.BackupPromptScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/world/BackupPromptScreenintermediary net/minecraft/class_405official gle
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BackupPromptScreen.Callbackstatic final Textprivate CheckboxWidgetprotected int(package private) final Textprivate final Runnableprivate final booleanprivate static final Textprivate final Textprivate MultilineTextFields 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
ConstructorsConstructorDescriptionBackupPromptScreen(Runnable onCancel, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckbox) BackupPromptScreen(Runnable onCancel, BackupPromptScreen.Callback callback, Text title, Text subtitle, Text firstButtonText, boolean showEraseCacheCheckbox) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()Called when a screen should be initialized.booleankeyPressed(KeyInput input) Callback for when a key down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) booleanChecks 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, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, close, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldPause, 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
-
SKIP_BUTTON_TEXT
- Mappings:
Namespace Name Mixin selector named SKIP_BUTTON_TEXTLnet/minecraft/client/gui/screen/world/BackupPromptScreen;SKIP_BUTTON_TEXT:Lnet/minecraft/text/Text;intermediary field_52796Lnet/minecraft/class_405;field_52796:Lnet/minecraft/class_2561;official eLgle;e:Lxx;
-
CONFIRM_BUTTON_TEXT
- Mappings:
Namespace Name Mixin selector named CONFIRM_BUTTON_TEXTLnet/minecraft/client/gui/screen/world/BackupPromptScreen;CONFIRM_BUTTON_TEXT:Lnet/minecraft/text/Text;intermediary field_52794Lnet/minecraft/class_405;field_52794:Lnet/minecraft/class_2561;official aLgle;a:Lxx;
-
onCancel
- Mappings:
Namespace Name Mixin selector named onCancelLnet/minecraft/client/gui/screen/world/BackupPromptScreen;onCancel:Ljava/lang/Runnable;intermediary field_46858Lnet/minecraft/class_405;field_46858:Ljava/lang/Runnable;official fLgle;f:Ljava/lang/Runnable;
-
callback
- Mappings:
Namespace Name Mixin selector named callbackLnet/minecraft/client/gui/screen/world/BackupPromptScreen;callback:Lnet/minecraft/client/gui/screen/world/BackupPromptScreen$Callback;intermediary field_46857Lnet/minecraft/class_405;field_46857:Lnet/minecraft/class_405$class_406;official bLgle;b:Lgle$a;
-
subtitle
- Mappings:
Namespace Name Mixin selector named subtitleLnet/minecraft/client/gui/screen/world/BackupPromptScreen;subtitle:Lnet/minecraft/text/Text;intermediary field_2364Lnet/minecraft/class_405;field_2364:Lnet/minecraft/class_2561;official tLgle;t:Lxx;
-
showEraseCacheCheckbox
private final boolean showEraseCacheCheckbox- Mappings:
Namespace Name Mixin selector named showEraseCacheCheckboxLnet/minecraft/client/gui/screen/world/BackupPromptScreen;showEraseCacheCheckbox:Zintermediary field_19232Lnet/minecraft/class_405;field_19232:Zofficial uLgle;u:Z
-
wrappedText
- Mappings:
Namespace Name Mixin selector named wrappedTextLnet/minecraft/client/gui/screen/world/BackupPromptScreen;wrappedText:Lnet/minecraft/client/font/MultilineText;intermediary field_2365Lnet/minecraft/class_405;field_2365:Lnet/minecraft/class_5489;official vLgle;v:Lgej;
-
firstButtonText
- Mappings:
Namespace Name Mixin selector named firstButtonTextLnet/minecraft/client/gui/screen/world/BackupPromptScreen;firstButtonText:Lnet/minecraft/text/Text;intermediary field_52795Lnet/minecraft/class_405;field_52795:Lnet/minecraft/class_2561;official cLgle;c:Lxx;
-
field_32236
protected int field_32236- Mappings:
Namespace Name Mixin selector named field_32236Lnet/minecraft/client/gui/screen/world/BackupPromptScreen;field_32236:Iintermediary field_32236Lnet/minecraft/class_405;field_32236:Iofficial dLgle;d:I
-
eraseCacheCheckbox
- Mappings:
Namespace Name Mixin selector named eraseCacheCheckboxLnet/minecraft/client/gui/screen/world/BackupPromptScreen;eraseCacheCheckbox:Lnet/minecraft/client/gui/widget/CheckboxWidget;intermediary field_19234Lnet/minecraft/class_405;field_19234:Lnet/minecraft/class_4286;official wLgle;w:Lgdr;
-
-
Constructor Details
-
BackupPromptScreen
public BackupPromptScreen(Runnable onCancel, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckbox) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/BackupPromptScreen;<init>(Ljava/lang/Runnable;Lnet/minecraft/client/gui/screen/world/BackupPromptScreen$Callback;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Z)Vintermediary <init>Lnet/minecraft/class_405;<init>(Ljava/lang/Runnable;Lnet/minecraft/class_405$class_406;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Z)Vofficial <init>Lgle;<init>(Ljava/lang/Runnable;Lgle$a;Lxx;Lxx;Z)V
-
BackupPromptScreen
public BackupPromptScreen(Runnable onCancel, BackupPromptScreen.Callback callback, Text title, Text subtitle, Text firstButtonText, boolean showEraseCacheCheckbox) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/BackupPromptScreen;<init>(Ljava/lang/Runnable;Lnet/minecraft/client/gui/screen/world/BackupPromptScreen$Callback;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Z)Vintermediary <init>Lnet/minecraft/class_405;<init>(Ljava/lang/Runnable;Lnet/minecraft/class_405$class_406;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Z)Vofficial <init>Lgle;<init>(Ljava/lang/Runnable;Lgle$a;Lxx;Lxx;Lxx;Z)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLget;a(Lgdd;IIF)V
-
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
-