Package net.minecraft.client.gui.screen
Class TitleScreen
java.lang.Object
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 named net/minecraft/client/gui/screen/TitleScreen
intermediary net/minecraft/class_442
official ftz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private long
private ButtonWidget
private static final Text
private static final String
private boolean
private static final float
private static final Logger
private final LogoDrawer
private static final Text
private @Nullable RealmsNotificationsScreen
private @Nullable SplashTextRenderer
Fields 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, width
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 int
addDemoWidgets
(int y, int spacingY) private int
addDevelopmentWidgets
(int y, int spacingY) private int
addNormalWidgets
(int y, int spacingY) private boolean
protected void
init()
Called when a screen should be initialized.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 usinginvalid reference
MinecraftClient#setScreen
init()
orinvalid reference
#initTabNavigation()
void
removed()
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.protected void
renderPanoramaBackground
(DrawContext context, float delta) private void
setWidgetAlpha
(float alpha) boolean
Checks whether this screen should be closed when the escape key is pressed.boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, refreshNarrator, refreshWidgetPositions, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldHideStatusEffectHud, switchFocus, updateNarrator
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gui/screen/TitleScreen;LOGGER:Lorg/slf4j/Logger;
intermediary field_23775
Lnet/minecraft/class_442;field_23775:Lorg/slf4j/Logger;
official a
Lftz;a:Lorg/slf4j/Logger;
-
NARRATOR_SCREEN_TITLE
- Mappings:
Namespace Name Mixin selector named NARRATOR_SCREEN_TITLE
Lnet/minecraft/client/gui/screen/TitleScreen;NARRATOR_SCREEN_TITLE:Lnet/minecraft/text/Text;
intermediary field_47850
Lnet/minecraft/class_442;field_47850:Lnet/minecraft/class_2561;
official b
Lftz;b:Lxv;
-
COPYRIGHT
- Mappings:
Namespace Name Mixin selector named COPYRIGHT
Lnet/minecraft/client/gui/screen/TitleScreen;COPYRIGHT:Lnet/minecraft/text/Text;
intermediary field_32271
Lnet/minecraft/class_442;field_32271:Lnet/minecraft/class_2561;
official c
Lftz;c:Lxv;
-
DEMO_WORLD_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named DEMO_WORLD_NAME
Lnet/minecraft/client/gui/screen/TitleScreen;DEMO_WORLD_NAME:Ljava/lang/String;
intermediary field_32272
Lnet/minecraft/class_442;field_32272:Ljava/lang/String;
official d
Lftz;d:Ljava/lang/String;
-
field_49900
private static final float field_49900- See Also:
- Mappings:
Namespace Name Mixin selector named field_49900
Lnet/minecraft/client/gui/screen/TitleScreen;field_49900:F
intermediary field_49900
Lnet/minecraft/class_442;field_49900:F
official s
Lftz;s:F
-
splashText
- Mappings:
Namespace Name Mixin selector named splashText
Lnet/minecraft/client/gui/screen/TitleScreen;splashText:Lnet/minecraft/client/gui/screen/SplashTextRenderer;
intermediary field_2586
Lnet/minecraft/class_442;field_2586:Lnet/minecraft/class_8519;
official u
Lftz;u:Lfpj;
-
buttonResetDemo
- Mappings:
Namespace Name Mixin selector named buttonResetDemo
Lnet/minecraft/client/gui/screen/TitleScreen;buttonResetDemo:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_2590
Lnet/minecraft/class_442;field_2590:Lnet/minecraft/class_4185;
official v
Lftz;v:Lfoe;
-
realmsNotificationGui
- Mappings:
Namespace Name Mixin selector named realmsNotificationGui
Lnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/realms/gui/screen/RealmsNotificationsScreen;
intermediary field_2592
Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_4399;
official w
Lftz;w:Lfjz;
-
backgroundAlpha
private float backgroundAlpha- Mappings:
Namespace Name Mixin selector named backgroundAlpha
Lnet/minecraft/client/gui/screen/TitleScreen;backgroundAlpha:F
intermediary field_49514
Lnet/minecraft/class_442;field_49514:F
official x
Lftz;x:F
-
doBackgroundFade
private boolean doBackgroundFade- Mappings:
Namespace Name Mixin selector named doBackgroundFade
Lnet/minecraft/client/gui/screen/TitleScreen;doBackgroundFade:Z
intermediary field_18222
Lnet/minecraft/class_442;field_18222:Z
official y
Lftz;y:Z
-
backgroundFadeStart
private long backgroundFadeStart- Mappings:
Namespace Name Mixin selector named backgroundFadeStart
Lnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:J
intermediary field_17772
Lnet/minecraft/class_442;field_17772:J
official z
Lftz;z:J
-
logoDrawer
- Mappings:
Namespace Name Mixin selector named logoDrawer
Lnet/minecraft/client/gui/screen/TitleScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;
intermediary field_41847
Lnet/minecraft/class_442;field_41847:Lnet/minecraft/class_8020;
official A
Lftz;A:Lfow;
-
-
Constructor Details
-
TitleScreen
public TitleScreen() -
TitleScreen
public TitleScreen(boolean doBackgroundFade) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/TitleScreen;<init>(Z)V
intermediary <init>
Lnet/minecraft/class_442;<init>(Z)V
official <init>
Lftz;<init>(Z)V
-
TitleScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/TitleScreen;<init>(ZLnet/minecraft/client/gui/LogoDrawer;)V
intermediary <init>
Lnet/minecraft/class_442;<init>(ZLnet/minecraft/class_8020;)V
official <init>
Lftz;<init>(ZLfow;)V
-
-
Method Details
-
isRealmsNotificationsGuiDisplayed
private boolean isRealmsNotificationsGuiDisplayed()- Mappings:
Namespace Name Mixin selector named isRealmsNotificationsGuiDisplayed
Lnet/minecraft/client/gui/screen/TitleScreen;isRealmsNotificationsGuiDisplayed()Z
intermediary method_2253
Lnet/minecraft/class_442;method_2253()Z
official l
Lftz;l()Z
-
tick
public void tick() -
loadTexturesAsync
public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor) - Mappings:
Namespace Name Mixin selector named loadTexturesAsync
Lnet/minecraft/client/gui/screen/TitleScreen;loadTexturesAsync(Lnet/minecraft/client/texture/TextureManager;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;
official a
Lftz;a(Lhbl;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
official j
Lftx;j()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 named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
official aH_
Lftx;aH_()Z
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
addDevelopmentWidgets
private int addDevelopmentWidgets(int y, int spacingY) - Mappings:
Namespace Name Mixin selector named addDevelopmentWidgets
Lnet/minecraft/client/gui/screen/TitleScreen;addDevelopmentWidgets(II)I
intermediary method_64237
Lnet/minecraft/class_442;method_64237(II)I
official a
Lftz;a(II)I
-
addNormalWidgets
private int addNormalWidgets(int y, int spacingY) - Mappings:
Namespace Name Mixin selector named addNormalWidgets
Lnet/minecraft/client/gui/screen/TitleScreen;addNormalWidgets(II)I
intermediary method_2249
Lnet/minecraft/class_442;method_2249(II)I
official b
Lftz;b(II)I
-
getMultiplayerDisabledText
- Mappings:
Namespace Name Mixin selector named getMultiplayerDisabledText
Lnet/minecraft/client/gui/screen/TitleScreen;getMultiplayerDisabledText()Lnet/minecraft/text/Text;
intermediary method_44692
Lnet/minecraft/class_442;method_44692()Lnet/minecraft/class_2561;
official E
Lftz;E()Lxv;
-
addDemoWidgets
private int addDemoWidgets(int y, int spacingY) - Mappings:
Namespace Name Mixin selector named addDemoWidgets
Lnet/minecraft/client/gui/screen/TitleScreen;addDemoWidgets(II)I
intermediary method_2251
Lnet/minecraft/class_442;method_2251(II)I
official c
Lftz;c(II)I
-
canReadDemoWorldData
private boolean canReadDemoWorldData()- Mappings:
Namespace Name Mixin selector named canReadDemoWorldData
Lnet/minecraft/client/gui/screen/TitleScreen;canReadDemoWorldData()Z
intermediary method_31129
Lnet/minecraft/class_442;method_31129()Z
official F
Lftz;F()Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfpi;a(Lfnr;IIF)V
-
setWidgetAlpha
private void setWidgetAlpha(float alpha) - Mappings:
Namespace Name Mixin selector named setWidgetAlpha
Lnet/minecraft/client/gui/screen/TitleScreen;setWidgetAlpha(F)V
intermediary method_59752
Lnet/minecraft/class_442;method_59752(F)V
official a
Lftz;a(F)V
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lftx;b(Lfnr;IIF)V
-
renderPanoramaBackground
- Overrides:
renderPanoramaBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderPanoramaBackground
Lnet/minecraft/client/gui/screen/Screen;renderPanoramaBackground(Lnet/minecraft/client/gui/DrawContext;F)V
intermediary method_57728
Lnet/minecraft/class_437;method_57728(Lnet/minecraft/class_332;F)V
official a
Lftx;a(Lfnr;F)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 named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
official a
Lfqc;a(DDI)Z
-
removed
public void removed() -
onDisplayed
public void onDisplayed()Called when the screen is displayed usinginvalid reference
MinecraftClient#setScreen
init()
orinvalid reference
#initTabNavigation()
- Overrides:
onDisplayed
in classScreen
- Mappings:
Namespace Name Mixin selector named onDisplayed
Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
intermediary method_49589
Lnet/minecraft/class_437;method_49589()V
official aK_
Lftx;aK_()V
-
onDemoDeletionConfirmed
private void onDemoDeletionConfirmed(boolean delete) - Mappings:
Namespace Name Mixin selector named onDemoDeletionConfirmed
Lnet/minecraft/client/gui/screen/TitleScreen;onDemoDeletionConfirmed(Z)V
intermediary method_20375
Lnet/minecraft/class_442;method_20375(Z)V
official c
Lftz;c(Z)V
-