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 fmx
-
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.Callbackprivate CheckboxWidgetprotected intprivate final Runnableprivate final booleanprivate final Textprivate MultilineTextFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionBackupPromptScreen(Runnable onCancel, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckBox) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float delta) booleanChecks whether this screen should be closed when the escape key is pressed.Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods 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
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
-
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 cLfmx;c: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 aLfmx;a:Lfmx$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 rLfmx;r:Lwz;
-
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 sLfmx;s: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 uLfmx;u:Lfjf;
-
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 bLfmx;b: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 vLfmx;v:Lfio;
-
-
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>Lfmx;<init>(Ljava/lang/Runnable;Lfmx$a;Lwz;Lwz;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.
This should call
Screen.setInitialFocus()to set the element that is initially focused. -
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 aLfjp;a(Lfhz;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 aJ_Lfod;aJ_()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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- 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:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfki;a(III)Z
-