类 TitleScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.TitleScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class TitleScreen extends Screen
- Mappings:
Namespace Name official dzlintermediary net/minecraft/class_442named net/minecraft/client/gui/screen/TitleScreen
-
-
字段概要
字段 修饰符和类型 字段 说明 private static IdentifierACCESSIBILITY_ICON_TEXTUREprivate longbackgroundFadeStartprivate RotatingCubeMapRendererbackgroundRendererprivate ButtonWidgetbuttonResetDemostatic StringCOPYRIGHTprivate intcopyrightTextWidthprivate intcopyrightTextXprivate booleandoBackgroundFadeprivate static IdentifierEDITION_TITLE_TEXTUREprivate static Stringfield_32272private booleanisMinceraftprivate static LoggerLOGGERprivate static IdentifierMINECRAFT_TITLE_TEXTUREstatic CubeMapRendererPANORAMA_CUBE_MAPprivate static IdentifierPANORAMA_OVERLAYprivate ScreenrealmsNotificationGuiprivate booleanrealmsNotificationsInitializedprivate @Nullable StringsplashText-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 TitleScreen()TitleScreen(boolean doBackgroundFade)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private booleanareRealmsNotificationsEnabled()private booleancanReadDemoWorldData()protected voidinit()Called when a screen should be initialized.private voidinitWidgetsDemo(int y, int spacingY)private voidinitWidgetsNormal(int y, int spacingY)booleanisPauseScreen()static CompletableFuture<Void>loadTexturesAsync(TextureManager textureManager, Executor executor)booleanmouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured.private voidonDemoDeletionConfirmed(boolean delete)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)booleanshouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.private voidswitchToRealms()voidtick()-
从类继承的方法 net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, 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, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official cLdzl;c:Lorg/apache/logging/log4j/Logger;intermediary field_23775Lnet/minecraft/class_442;field_23775:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/TitleScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_32272
private static final String field_32272
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official pLdzl;p:Ljava/lang/String;intermediary field_32272Lnet/minecraft/class_442;field_32272:Ljava/lang/String;named field_32272Lnet/minecraft/client/gui/screen/TitleScreen;field_32272:Ljava/lang/String;
-
COPYRIGHT
public static final String COPYRIGHT
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLdzl;a:Ljava/lang/String;intermediary field_32271Lnet/minecraft/class_442;field_32271:Ljava/lang/String;named COPYRIGHTLnet/minecraft/client/gui/screen/TitleScreen;COPYRIGHT:Ljava/lang/String;
-
PANORAMA_CUBE_MAP
public static final CubeMapRenderer PANORAMA_CUBE_MAP
- Mappings:
Namespace Name Mixin selector official bLdzl;b:Lelo;intermediary field_17774Lnet/minecraft/class_442;field_17774:Lnet/minecraft/class_751;named PANORAMA_CUBE_MAPLnet/minecraft/client/gui/screen/TitleScreen;PANORAMA_CUBE_MAP:Lnet/minecraft/client/gui/CubeMapRenderer;
-
PANORAMA_OVERLAY
private static final Identifier PANORAMA_OVERLAY
- Mappings:
Namespace Name Mixin selector official qLdzl;q:Lwp;intermediary field_17775Lnet/minecraft/class_442;field_17775:Lnet/minecraft/class_2960;named PANORAMA_OVERLAYLnet/minecraft/client/gui/screen/TitleScreen;PANORAMA_OVERLAY:Lnet/minecraft/util/Identifier;
-
ACCESSIBILITY_ICON_TEXTURE
private static final Identifier ACCESSIBILITY_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official rLdzl;r:Lwp;intermediary field_19102Lnet/minecraft/class_442;field_19102:Lnet/minecraft/class_2960;named ACCESSIBILITY_ICON_TEXTURELnet/minecraft/client/gui/screen/TitleScreen;ACCESSIBILITY_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
MINECRAFT_TITLE_TEXTURE
private static final Identifier MINECRAFT_TITLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official vLdzl;v:Lwp;intermediary field_2583Lnet/minecraft/class_442;field_2583:Lnet/minecraft/class_2960;named MINECRAFT_TITLE_TEXTURELnet/minecraft/client/gui/screen/TitleScreen;MINECRAFT_TITLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
EDITION_TITLE_TEXTURE
private static final Identifier EDITION_TITLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official wLdzl;w:Lwp;intermediary field_2594Lnet/minecraft/class_442;field_2594:Lnet/minecraft/class_2960;named EDITION_TITLE_TEXTURELnet/minecraft/client/gui/screen/TitleScreen;EDITION_TITLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
isMinceraft
private final boolean isMinceraft
- Mappings:
Namespace Name Mixin selector official sLdzl;s:Zintermediary field_17776Lnet/minecraft/class_442;field_17776:Znamed isMinceraftLnet/minecraft/client/gui/screen/TitleScreen;isMinceraft:Z
-
splashText
@Nullable private @Nullable String splashText
- Mappings:
Namespace Name Mixin selector official tLdzl;t:Ljava/lang/String;intermediary field_2586Lnet/minecraft/class_442;field_2586:Ljava/lang/String;named splashTextLnet/minecraft/client/gui/screen/TitleScreen;splashText:Ljava/lang/String;
-
buttonResetDemo
private ButtonWidget buttonResetDemo
- Mappings:
Namespace Name Mixin selector official uLdzl;u:Ldvw;intermediary field_2590Lnet/minecraft/class_442;field_2590:Lnet/minecraft/class_4185;named buttonResetDemoLnet/minecraft/client/gui/screen/TitleScreen;buttonResetDemo:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
realmsNotificationsInitialized
private boolean realmsNotificationsInitialized
- Mappings:
Namespace Name Mixin selector official xLdzl;x:Zintermediary field_2599Lnet/minecraft/class_442;field_2599:Znamed realmsNotificationsInitializedLnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationsInitialized:Z
-
realmsNotificationGui
private Screen realmsNotificationGui
- Mappings:
Namespace Name Mixin selector official yLdzl;y:Ldzg;intermediary field_2592Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_437;named realmsNotificationGuiLnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/gui/screen/Screen;
-
copyrightTextWidth
private int copyrightTextWidth
- Mappings:
Namespace Name Mixin selector official zLdzl;z:Iintermediary field_2584Lnet/minecraft/class_442;field_2584:Inamed copyrightTextWidthLnet/minecraft/client/gui/screen/TitleScreen;copyrightTextWidth:I
-
copyrightTextX
private int copyrightTextX
- Mappings:
Namespace Name Mixin selector official ALdzl;A:Iintermediary field_2606Lnet/minecraft/class_442;field_2606:Inamed copyrightTextXLnet/minecraft/client/gui/screen/TitleScreen;copyrightTextX:I
-
backgroundRenderer
private final RotatingCubeMapRenderer backgroundRenderer
- Mappings:
Namespace Name Mixin selector official BLdzl;B:Lemc;intermediary field_2585Lnet/minecraft/class_442;field_2585:Lnet/minecraft/class_766;named backgroundRendererLnet/minecraft/client/gui/screen/TitleScreen;backgroundRenderer:Lnet/minecraft/client/gui/RotatingCubeMapRenderer;
-
doBackgroundFade
private final boolean doBackgroundFade
- Mappings:
Namespace Name Mixin selector official CLdzl;C:Zintermediary field_18222Lnet/minecraft/class_442;field_18222:Znamed doBackgroundFadeLnet/minecraft/client/gui/screen/TitleScreen;doBackgroundFade:Z
-
backgroundFadeStart
private long backgroundFadeStart
- Mappings:
Namespace Name Mixin selector official DLdzl;D:Jintermediary field_17772Lnet/minecraft/class_442;field_17772:Jnamed backgroundFadeStartLnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:J
-
-
方法详细资料
-
areRealmsNotificationsEnabled
private boolean areRealmsNotificationsEnabled()
- Mappings:
Namespace Name Mixin selector official hLdzl;h()Zintermediary method_2253Lnet/minecraft/class_442;method_2253()Znamed areRealmsNotificationsEnabledLnet/minecraft/client/gui/screen/TitleScreen;areRealmsNotificationsEnabled()Z
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- 覆盖:
tick在类中Screen- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
loadTexturesAsync
public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor)
- Mappings:
Namespace Name Mixin selector official aLdzl;a(Lewe;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;intermediary method_18105Lnet/minecraft/class_442;method_18105(Lnet/minecraft/class_1060;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;named loadTexturesAsyncLnet/minecraft/client/gui/screen/TitleScreen;loadTexturesAsync(Lnet/minecraft/client/texture/TextureManager;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
isPauseScreen
public boolean isPauseScreen()
- 覆盖:
isPauseScreen在类中Screen- Mappings:
Namespace Name Mixin selector official aE_Ldzg;aE_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed isPauseScreenLnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
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
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
initWidgetsNormal
private void initWidgetsNormal(int y, int spacingY)- Mappings:
Namespace Name Mixin selector official aLdzl;a(II)Vintermediary method_2249Lnet/minecraft/class_442;method_2249(II)Vnamed initWidgetsNormalLnet/minecraft/client/gui/screen/TitleScreen;initWidgetsNormal(II)V
-
initWidgetsDemo
private void initWidgetsDemo(int y, int spacingY)- Mappings:
Namespace Name Mixin selector official bLdzl;b(II)Vintermediary method_2251Lnet/minecraft/class_442;method_2251(II)Vnamed initWidgetsDemoLnet/minecraft/client/gui/screen/TitleScreen;initWidgetsDemo(II)V
-
canReadDemoWorldData
private boolean canReadDemoWorldData()
- Mappings:
Namespace Name Mixin selector official iLdzl;i()Zintermediary method_31129Lnet/minecraft/class_442;method_31129()Znamed canReadDemoWorldDataLnet/minecraft/client/gui/screen/TitleScreen;canReadDemoWorldData()Z
-
switchToRealms
private void switchToRealms()
- Mappings:
Namespace Name Mixin selector official kLdzl;k()Vintermediary method_2252Lnet/minecraft/class_442;method_2252()Vnamed switchToRealmsLnet/minecraft/client/gui/screen/TitleScreen;switchToRealms()V
-
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
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
removed
public void removed()
-
onDemoDeletionConfirmed
private void onDemoDeletionConfirmed(boolean delete)
- Mappings:
Namespace Name Mixin selector official cLdzl;c(Z)Vintermediary method_20375Lnet/minecraft/class_442;method_20375(Z)Vnamed onDemoDeletionConfirmedLnet/minecraft/client/gui/screen/TitleScreen;onDemoDeletionConfirmed(Z)V
-
-