Package net.minecraft.client.gui.screen
Class 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
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class TitleScreen extends Screen
- Mappings:
Namespace Name official dvj
intermediary net/minecraft/class_442
named net/minecraft/client/gui/screen/TitleScreen
-
Field Summary
Fields Modifier and Type Field Description private static Identifier
ACCESSIBILITY_ICON_TEXTURE
private long
backgroundFadeStart
private RotatingCubeMapRenderer
backgroundRenderer
private ButtonWidget
buttonResetDemo
private int
copyrightTextWidth
private int
copyrightTextX
private boolean
doBackgroundFade
private static Identifier
EDITION_TITLE_TEXTURE
private static Logger
field_23775
private boolean
isMinceraft
private static Identifier
MINECRAFT_TITLE_TEXTURE
static CubeMapRenderer
PANORAMA_CUBE_MAP
private static Identifier
PANORAMA_OVERLAY
private Screen
realmsNotificationGui
private boolean
realmsNotificationsInitialized
private String
splashText
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description TitleScreen()
TitleScreen(boolean doBackgroundFade)
-
Method Summary
Modifier and Type Method Description private boolean
areRealmsNotificationsEnabled()
protected void
init()
Called when a screen should be initialized.private void
initWidgetsDemo(int y, int spacingY)
private void
initWidgetsNormal(int y, int spacingY)
boolean
isPauseScreen()
static CompletableFuture<Void>
loadTexturesAsync(TextureManager textureManager, Executor executor)
private boolean
method_31129()
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.private void
onDemoDeletionConfirmed(boolean delete)
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
boolean
shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.private void
switchToRealms()
void
tick()
Methods inherited from class 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
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
field_23775
- Mappings:
Namespace Name Mixin selector official b
Ldvj;b:Lorg/apache/logging/log4j/Logger;
intermediary field_23775
Lnet/minecraft/class_442;field_23775:Lorg/apache/logging/log4j/Logger;
named field_23775
Lnet/minecraft/client/gui/screen/TitleScreen;field_23775:Lorg/apache/logging/log4j/Logger;
-
PANORAMA_CUBE_MAP
- Mappings:
Namespace Name Mixin selector official a
Ldvj;a:Lehe;
intermediary field_17774
Lnet/minecraft/class_442;field_17774:Lnet/minecraft/class_751;
named PANORAMA_CUBE_MAP
Lnet/minecraft/client/gui/screen/TitleScreen;PANORAMA_CUBE_MAP:Lnet/minecraft/client/gui/CubeMapRenderer;
-
PANORAMA_OVERLAY
- Mappings:
Namespace Name Mixin selector official c
Ldvj;c:Lwb;
intermediary field_17775
Lnet/minecraft/class_442;field_17775:Lnet/minecraft/class_2960;
named PANORAMA_OVERLAY
Lnet/minecraft/client/gui/screen/TitleScreen;PANORAMA_OVERLAY:Lnet/minecraft/util/Identifier;
-
ACCESSIBILITY_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official p
Ldvj;p:Lwb;
intermediary field_19102
Lnet/minecraft/class_442;field_19102:Lnet/minecraft/class_2960;
named ACCESSIBILITY_ICON_TEXTURE
Lnet/minecraft/client/gui/screen/TitleScreen;ACCESSIBILITY_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
MINECRAFT_TITLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official t
Ldvj;t:Lwb;
intermediary field_2583
Lnet/minecraft/class_442;field_2583:Lnet/minecraft/class_2960;
named MINECRAFT_TITLE_TEXTURE
Lnet/minecraft/client/gui/screen/TitleScreen;MINECRAFT_TITLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
EDITION_TITLE_TEXTURE
- Mappings:
Namespace Name Mixin selector official u
Ldvj;u:Lwb;
intermediary field_2594
Lnet/minecraft/class_442;field_2594:Lnet/minecraft/class_2960;
named EDITION_TITLE_TEXTURE
Lnet/minecraft/client/gui/screen/TitleScreen;EDITION_TITLE_TEXTURE:Lnet/minecraft/util/Identifier;
-
isMinceraft
private final boolean isMinceraft- Mappings:
Namespace Name Mixin selector official q
Ldvj;q:Z
intermediary field_17776
Lnet/minecraft/class_442;field_17776:Z
named isMinceraft
Lnet/minecraft/client/gui/screen/TitleScreen;isMinceraft:Z
-
splashText
- Mappings:
Namespace Name Mixin selector official r
Ldvj;r:Ljava/lang/String;
intermediary field_2586
Lnet/minecraft/class_442;field_2586:Ljava/lang/String;
named splashText
Lnet/minecraft/client/gui/screen/TitleScreen;splashText:Ljava/lang/String;
-
buttonResetDemo
- Mappings:
Namespace Name Mixin selector official s
Ldvj;s:Ldru;
intermediary field_2590
Lnet/minecraft/class_442;field_2590:Lnet/minecraft/class_4185;
named buttonResetDemo
Lnet/minecraft/client/gui/screen/TitleScreen;buttonResetDemo:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
realmsNotificationsInitialized
private boolean realmsNotificationsInitialized- Mappings:
Namespace Name Mixin selector official v
Ldvj;v:Z
intermediary field_2599
Lnet/minecraft/class_442;field_2599:Z
named realmsNotificationsInitialized
Lnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationsInitialized:Z
-
realmsNotificationGui
- Mappings:
Namespace Name Mixin selector official w
Ldvj;w:Ldve;
intermediary field_2592
Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_437;
named realmsNotificationGui
Lnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/gui/screen/Screen;
-
copyrightTextWidth
private int copyrightTextWidth- Mappings:
Namespace Name Mixin selector official x
Ldvj;x:I
intermediary field_2584
Lnet/minecraft/class_442;field_2584:I
named copyrightTextWidth
Lnet/minecraft/client/gui/screen/TitleScreen;copyrightTextWidth:I
-
copyrightTextX
private int copyrightTextX- Mappings:
Namespace Name Mixin selector official y
Ldvj;y:I
intermediary field_2606
Lnet/minecraft/class_442;field_2606:I
named copyrightTextX
Lnet/minecraft/client/gui/screen/TitleScreen;copyrightTextX:I
-
backgroundRenderer
- Mappings:
Namespace Name Mixin selector official z
Ldvj;z:Lehs;
intermediary field_2585
Lnet/minecraft/class_442;field_2585:Lnet/minecraft/class_766;
named backgroundRenderer
Lnet/minecraft/client/gui/screen/TitleScreen;backgroundRenderer:Lnet/minecraft/client/gui/RotatingCubeMapRenderer;
-
doBackgroundFade
private final boolean doBackgroundFade- Mappings:
Namespace Name Mixin selector official A
Ldvj;A:Z
intermediary field_18222
Lnet/minecraft/class_442;field_18222:Z
named doBackgroundFade
Lnet/minecraft/client/gui/screen/TitleScreen;doBackgroundFade:Z
-
backgroundFadeStart
private long backgroundFadeStart- Mappings:
Namespace Name Mixin selector official B
Ldvj;B:J
intermediary field_17772
Lnet/minecraft/class_442;field_17772:J
named backgroundFadeStart
Lnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:J
-
-
Constructor Details
-
TitleScreen
public TitleScreen() -
TitleScreen
public TitleScreen(boolean doBackgroundFade)- Mappings:
Namespace Name Mixin selector official <init>
Ldvj;<init>(Z)V
intermediary <init>
Lnet/minecraft/class_442;<init>(Z)V
named <init>
Lnet/minecraft/client/gui/screen/TitleScreen;<init>(Z)V
-
-
Method Details
-
areRealmsNotificationsEnabled
private boolean areRealmsNotificationsEnabled()- Mappings:
Namespace Name Mixin selector official h
Ldvj;h()Z
intermediary method_2253
Lnet/minecraft/class_442;method_2253()Z
named areRealmsNotificationsEnabled
Lnet/minecraft/client/gui/screen/TitleScreen;areRealmsNotificationsEnabled()Z
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
loadTexturesAsync
public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor)- Mappings:
Namespace Name Mixin selector official a
Ldvj;a(Lerv;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
intermediary method_18105
Lnet/minecraft/class_442;method_18105(Lnet/minecraft/class_1060;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
named loadTexturesAsync
Lnet/minecraft/client/gui/screen/TitleScreen;loadTexturesAsync(Lnet/minecraft/client/texture/TextureManager;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
- Mappings:
Namespace Name Mixin selector official aD_
Ldve;aD_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named isPauseScreen
Lnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEsc
in classScreen
- Mappings:
Namespace Name Mixin selector official ay_
Ldve;ay_()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
named shouldCloseOnEsc
Lnet/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 a
Ldvj;a(II)V
intermediary method_2249
Lnet/minecraft/class_442;method_2249(II)V
named initWidgetsNormal
Lnet/minecraft/client/gui/screen/TitleScreen;initWidgetsNormal(II)V
-
initWidgetsDemo
private void initWidgetsDemo(int y, int spacingY)- Mappings:
Namespace Name Mixin selector official b
Ldvj;b(II)V
intermediary method_2251
Lnet/minecraft/class_442;method_2251(II)V
named initWidgetsDemo
Lnet/minecraft/client/gui/screen/TitleScreen;initWidgetsDemo(II)V
-
method_31129
private boolean method_31129()- Mappings:
Namespace Name Mixin selector official i
Ldvj;i()Z
intermediary method_31129
Lnet/minecraft/class_442;method_31129()Z
named method_31129
Lnet/minecraft/client/gui/screen/TitleScreen;method_31129()Z
-
switchToRealms
private void switchToRealms()- Mappings:
Namespace Name Mixin selector official k
Ldvj;k()V
intermediary method_2252
Lnet/minecraft/class_442;method_2252()V
named switchToRealms
Lnet/minecraft/client/gui/screen/TitleScreen;switchToRealms()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/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 inGLFW
class.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
removed
public void removed() -
onDemoDeletionConfirmed
private void onDemoDeletionConfirmed(boolean delete)- Mappings:
Namespace Name Mixin selector official c
Ldvj;c(Z)V
intermediary method_20375
Lnet/minecraft/class_442;method_20375(Z)V
named onDemoDeletionConfirmed
Lnet/minecraft/client/gui/screen/TitleScreen;onDemoDeletionConfirmed(Z)V
-