类 BackupPromptScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.BackupPromptScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class BackupPromptScreen extends Screen
- Mappings:
Namespace Name official dybintermediary net/minecraft/class_405named net/minecraft/client/gui/screen/BackupPromptScreen
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceBackupPromptScreen.Callback
-
字段概要
字段 修饰符和类型 字段 说明 protected BackupPromptScreen.Callbackcallbackprivate CheckboxWidgeteraseCacheCheckboxprotected intfield_32236private @Nullable Screenparentprivate booleanshowEraseCacheCheckboxprivate Textsubtitleprivate MultilineTextwrappedText-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 BackupPromptScreen(@Nullable Screen parent, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckBox)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected 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(MatrixStack matrices, int mouseX, int mouseY, float delta)booleanshouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.-
从类继承的方法 net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, tick, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
parent
@Nullable private final @Nullable Screen parent
- Mappings:
Namespace Name Mixin selector official cLdyb;c:Ldzg;intermediary field_2360Lnet/minecraft/class_405;field_2360:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/BackupPromptScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
callback
protected final BackupPromptScreen.Callback callback
- Mappings:
Namespace Name Mixin selector official aLdyb;a:Ldyb$a;intermediary field_18971Lnet/minecraft/class_405;field_18971:Lnet/minecraft/class_405$class_406;named callbackLnet/minecraft/client/gui/screen/BackupPromptScreen;callback:Lnet/minecraft/client/gui/screen/BackupPromptScreen$Callback;
-
subtitle
private final Text subtitle
- Mappings:
Namespace Name Mixin selector official pLdyb;p:Lon;intermediary field_2364Lnet/minecraft/class_405;field_2364:Lnet/minecraft/class_2561;named subtitleLnet/minecraft/client/gui/screen/BackupPromptScreen;subtitle:Lnet/minecraft/text/Text;
-
showEraseCacheCheckbox
private final boolean showEraseCacheCheckbox
- Mappings:
Namespace Name Mixin selector official qLdyb;q:Zintermediary field_19232Lnet/minecraft/class_405;field_19232:Znamed showEraseCacheCheckboxLnet/minecraft/client/gui/screen/BackupPromptScreen;showEraseCacheCheckbox:Z
-
wrappedText
private MultilineText wrappedText
- Mappings:
Namespace Name Mixin selector official rLdyb;r:Ldwi;intermediary field_2365Lnet/minecraft/class_405;field_2365:Lnet/minecraft/class_5489;named wrappedTextLnet/minecraft/client/gui/screen/BackupPromptScreen;wrappedText:Lnet/minecraft/client/font/MultilineText;
-
field_32236
protected int field_32236
- Mappings:
Namespace Name Mixin selector official bLdyb;b:Iintermediary field_32236Lnet/minecraft/class_405;field_32236:Inamed field_32236Lnet/minecraft/client/gui/screen/BackupPromptScreen;field_32236:I
-
eraseCacheCheckbox
private CheckboxWidget eraseCacheCheckbox
- Mappings:
Namespace Name Mixin selector official sLdyb;s:Ldvy;intermediary field_19234Lnet/minecraft/class_405;field_19234:Lnet/minecraft/class_4286;named eraseCacheCheckboxLnet/minecraft/client/gui/screen/BackupPromptScreen;eraseCacheCheckbox:Lnet/minecraft/client/gui/widget/CheckboxWidget;
-
-
构造器详细资料
-
BackupPromptScreen
public BackupPromptScreen(@Nullable @Nullable Screen parent, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckBox)
- Mappings:
Namespace Name Mixin selector official <init>Ldyb;<init>(Ldzg;Ldyb$a;Lon;Lon;Z)Vintermediary <init>Lnet/minecraft/class_405;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_405$class_406;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Z)Vnamed <init>Lnet/minecraft/client/gui/screen/BackupPromptScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/gui/screen/BackupPromptScreen$Callback;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Z)V
-
-
方法详细资料
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.- 覆盖:
shouldCloseOnEsc在类中Screen- Mappings:
Namespace Name Mixin selector official az_Ldzg;az_()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Znamed shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()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.- 指定者:
keyPressed在接口中Element- 指定者:
keyPressed在接口中ParentElement- 覆盖:
keyPressed在类中Screen- 参数:
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)- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdwv;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
-