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
,Navigable
,ParentElement
- Mappings:
Namespace Name official eti
intermediary net/minecraft/class_442
named net/minecraft/client/gui/screen/TitleScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private final RotatingCubeMapRenderer
private ButtonWidget
static final Text
private static final String
private final boolean
private static final Logger
private final LogoDrawer
static final CubeMapRenderer
private static final Identifier
private @Nullable RealmsNotificationsScreen
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionTitleScreen
(boolean doBackgroundFade) TitleScreen
(boolean doBackgroundFade, @Nullable LogoDrawer logoDrawer) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
protected void
init()
Called when a screen should be initialized.private void
initWidgetsDemo
(int y, int spacingY) private void
initWidgetsNormal
(int y, int spacingY) private boolean
static CompletableFuture<Void>
loadTexturesAsync
(TextureManager textureManager, Executor executor) 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
Called when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)
beforeScreen.init()
orScreen.initTabNavigation()
is called.void
removed()
void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) boolean
Checks whether this screen should be closed when the escape key is pressed.boolean
private void
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Leti;c:Lorg/slf4j/Logger;
intermediary field_23775
Lnet/minecraft/class_442;field_23775:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/screen/TitleScreen;LOGGER:Lorg/slf4j/Logger;
-
DEMO_WORLD_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official o
Leti;o:Ljava/lang/String;
intermediary field_32272
Lnet/minecraft/class_442;field_32272:Ljava/lang/String;
named DEMO_WORLD_NAME
Lnet/minecraft/client/gui/screen/TitleScreen;DEMO_WORLD_NAME:Ljava/lang/String;
-
COPYRIGHT
- Mappings:
Namespace Name Mixin selector official a
Leti;a:Ltj;
intermediary field_32271
Lnet/minecraft/class_442;field_32271:Lnet/minecraft/class_2561;
named COPYRIGHT
Lnet/minecraft/client/gui/screen/TitleScreen;COPYRIGHT:Lnet/minecraft/text/Text;
-
PANORAMA_CUBE_MAP
- Mappings:
Namespace Name Mixin selector official b
Leti;b:Lfhu;
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 p
Leti;p:Ladd;
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;
-
splashText
- Mappings:
Namespace Name Mixin selector official q
Leti;q: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 r
Leti;r:Leoc;
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;
-
realmsNotificationGui
- Mappings:
Namespace Name Mixin selector official s
Leti;s:Lekc;
intermediary field_2592
Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_4399;
named realmsNotificationGui
Lnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/realms/gui/screen/RealmsNotificationsScreen;
-
backgroundRenderer
- Mappings:
Namespace Name Mixin selector official t
Leti;t:Lfii;
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 u
Leti;u: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 v
Leti;v:J
intermediary field_17772
Lnet/minecraft/class_442;field_17772:J
named backgroundFadeStart
Lnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:J
-
deprecationNotice
- Mappings:
Namespace Name Mixin selector official w
Leti;w:Leti$a;
intermediary field_37209
Lnet/minecraft/class_442;field_37209:Lnet/minecraft/class_442$class_7063;
named deprecationNotice
Lnet/minecraft/client/gui/screen/TitleScreen;deprecationNotice:Lnet/minecraft/client/gui/screen/TitleScreen$DeprecationNotice;
-
logoDrawer
- Mappings:
Namespace Name Mixin selector official x
Leti;x:Leoq;
intermediary field_41847
Lnet/minecraft/class_442;field_41847:Lnet/minecraft/class_8020;
named logoDrawer
Lnet/minecraft/client/gui/screen/TitleScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;
-
-
Constructor Details
-
TitleScreen
public TitleScreen() -
TitleScreen
public TitleScreen(boolean doBackgroundFade) - Mappings:
Namespace Name Mixin selector official <init>
Leti;<init>(Z)V
intermediary <init>
Lnet/minecraft/class_442;<init>(Z)V
named <init>
Lnet/minecraft/client/gui/screen/TitleScreen;<init>(Z)V
-
TitleScreen
- Mappings:
Namespace Name Mixin selector official <init>
Leti;<init>(ZLeoq;)V
intermediary <init>
Lnet/minecraft/class_442;<init>(ZLnet/minecraft/class_8020;)V
named <init>
Lnet/minecraft/client/gui/screen/TitleScreen;<init>(ZLnet/minecraft/client/gui/LogoDrawer;)V
-
-
Method Details
-
isRealmsNotificationsGuiDisplayed
private boolean isRealmsNotificationsGuiDisplayed()- Mappings:
Namespace Name Mixin selector official m
Leti;m()Z
intermediary method_2253
Lnet/minecraft/class_442;method_2253()Z
named isRealmsNotificationsGuiDisplayed
Lnet/minecraft/client/gui/screen/TitleScreen;isRealmsNotificationsGuiDisplayed()Z
-
tick
public void tick() -
loadTexturesAsync
public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor) - Mappings:
Namespace Name Mixin selector official a
Leti;a(Lftd;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;
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector official aB_
Letd;aB_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()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 ax_
Letd;ax_()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.
This should call
Screen.setInitialFocus(net.minecraft.client.gui.Element)
to set the element that is initially focused. -
initWidgetsNormal
private void initWidgetsNormal(int y, int spacingY) - Mappings:
Namespace Name Mixin selector official a
Leti;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
-
getMultiplayerDisabledText
- Mappings:
Namespace Name Mixin selector official B
Leti;B()Ltj;
intermediary method_44692
Lnet/minecraft/class_442;method_44692()Lnet/minecraft/class_2561;
named getMultiplayerDisabledText
Lnet/minecraft/client/gui/screen/TitleScreen;getMultiplayerDisabledText()Lnet/minecraft/text/Text;
-
initWidgetsDemo
private void initWidgetsDemo(int y, int spacingY) - Mappings:
Namespace Name Mixin selector official b
Leti;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
-
canReadDemoWorldData
private boolean canReadDemoWorldData()- Mappings:
Namespace Name Mixin selector official C
Leti;C()Z
intermediary method_31129
Lnet/minecraft/class_442;method_31129()Z
named canReadDemoWorldData
Lnet/minecraft/client/gui/screen/TitleScreen;canReadDemoWorldData()Z
-
switchToRealms
private void switchToRealms()- Mappings:
Namespace Name Mixin selector official D
Leti;D()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
Lepa;a(Lehe;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:
- Mappings:
Namespace Name Mixin selector official a
Lepl;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() -
onDisplayed
public void onDisplayed()Called when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)
beforeScreen.init()
orScreen.initTabNavigation()
is called.- Overrides:
onDisplayed
in classScreen
- Mappings:
Namespace Name Mixin selector official aA_
Letd;aA_()V
intermediary method_49589
Lnet/minecraft/class_437;method_49589()V
named onDisplayed
Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
-
onDemoDeletionConfirmed
private void onDemoDeletionConfirmed(boolean delete) - Mappings:
Namespace Name Mixin selector official c
Leti;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
-