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 official eulintermediary net/minecraft/class_442named net/minecraft/client/gui/screen/TitleScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final RotatingCubeMapRendererprivate ButtonWidgetstatic final Textprivate static final Stringprivate final booleanprivate static final Loggerprivate final LogoDrawerstatic final CubeMapRendererprivate static final Identifierprivate @Nullable RealmsNotificationsScreenprivate @Nullable SplashTextRendererFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionTitleScreen(boolean doBackgroundFade) TitleScreen(boolean doBackgroundFade, @Nullable LogoDrawer logoDrawer) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprotected voidinit()Called when a screen should be initialized.private voidinitWidgetsDemo(int y, int spacingY) private voidinitWidgetsNormal(int y, int spacingY) private booleanstatic 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) voidCalled when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)beforeScreen.init()orScreen.initTabNavigation()is called.voidremoved()voidrender(DrawContext context, int mouseX, int mouseY, float delta) booleanChecks whether this screen should be closed when the escape key is pressed.booleanprivate voidvoidtick()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, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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 cLeul;c:Lorg/slf4j/Logger;intermediary field_23775Lnet/minecraft/class_442;field_23775:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/TitleScreen;LOGGER:Lorg/slf4j/Logger;
-
DEMO_WORLD_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector official jLeul;j:Ljava/lang/String;intermediary field_32272Lnet/minecraft/class_442;field_32272:Ljava/lang/String;named DEMO_WORLD_NAMELnet/minecraft/client/gui/screen/TitleScreen;DEMO_WORLD_NAME:Ljava/lang/String;
-
COPYRIGHT
- Mappings:
Namespace Name Mixin selector official aLeul;a:Lsw;intermediary field_32271Lnet/minecraft/class_442;field_32271:Lnet/minecraft/class_2561;named COPYRIGHTLnet/minecraft/client/gui/screen/TitleScreen;COPYRIGHT:Lnet/minecraft/text/Text;
-
PANORAMA_CUBE_MAP
- Mappings:
Namespace Name Mixin selector official bLeul;b:Lfja;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
- Mappings:
Namespace Name Mixin selector official kLeul;k:Lacq;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;
-
splashText
- Mappings:
Namespace Name Mixin selector official lLeul;l:Lepz;intermediary field_2586Lnet/minecraft/class_442;field_2586:Lnet/minecraft/class_8519;named splashTextLnet/minecraft/client/gui/screen/TitleScreen;splashText:Lnet/minecraft/client/gui/screen/SplashTextRenderer;
-
buttonResetDemo
- Mappings:
Namespace Name Mixin selector official mLeul;m:Lepa;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;
-
realmsNotificationGui
- Mappings:
Namespace Name Mixin selector official nLeul;n:Lela;intermediary field_2592Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_4399;named realmsNotificationGuiLnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/realms/gui/screen/RealmsNotificationsScreen;
-
backgroundRenderer
- Mappings:
Namespace Name Mixin selector official oLeul;o:Lfjo;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 pLeul;p: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 qLeul;q:Jintermediary field_17772Lnet/minecraft/class_442;field_17772:Jnamed backgroundFadeStartLnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:J
-
deprecationNotice
- Mappings:
Namespace Name Mixin selector official rLeul;r:Leul$a;intermediary field_37209Lnet/minecraft/class_442;field_37209:Lnet/minecraft/class_442$class_7063;named deprecationNoticeLnet/minecraft/client/gui/screen/TitleScreen;deprecationNotice:Lnet/minecraft/client/gui/screen/TitleScreen$DeprecationNotice;
-
logoDrawer
- Mappings:
Namespace Name Mixin selector official sLeul;s:Lepo;intermediary field_41847Lnet/minecraft/class_442;field_41847:Lnet/minecraft/class_8020;named logoDrawerLnet/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>Leul;<init>(Z)Vintermediary <init>Lnet/minecraft/class_442;<init>(Z)Vnamed <init>Lnet/minecraft/client/gui/screen/TitleScreen;<init>(Z)V
-
TitleScreen
- Mappings:
Namespace Name Mixin selector official <init>Leul;<init>(ZLepo;)Vintermediary <init>Lnet/minecraft/class_442;<init>(ZLnet/minecraft/class_8020;)Vnamed <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 lLeul;l()Zintermediary method_2253Lnet/minecraft/class_442;method_2253()Znamed isRealmsNotificationsGuiDisplayedLnet/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 aLeul;a(Lful;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;
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector official az_Leug;az_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed shouldPauseLnet/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:
shouldCloseOnEscin classScreen- Mappings:
Namespace Name Mixin selector official av_Leug;av_()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.
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 aLeul;a(II)Vintermediary method_2249Lnet/minecraft/class_442;method_2249(II)Vnamed initWidgetsNormalLnet/minecraft/client/gui/screen/TitleScreen;initWidgetsNormal(II)V
-
getMultiplayerDisabledText
- Mappings:
Namespace Name Mixin selector official BLeul;B()Lsw;intermediary method_44692Lnet/minecraft/class_442;method_44692()Lnet/minecraft/class_2561;named getMultiplayerDisabledTextLnet/minecraft/client/gui/screen/TitleScreen;getMultiplayerDisabledText()Lnet/minecraft/text/Text;
-
initWidgetsDemo
private void initWidgetsDemo(int y, int spacingY) - Mappings:
Namespace Name Mixin selector official bLeul;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 CLeul;C()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 DLeul;D()Vintermediary method_2252Lnet/minecraft/class_442;method_2252()Vnamed switchToRealmsLnet/minecraft/client/gui/screen/TitleScreen;switchToRealms()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLepy;a(Leop;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;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.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLeqk;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/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:
onDisplayedin classScreen- Mappings:
Namespace Name Mixin selector official ay_Leug;ay_()Vintermediary method_49589Lnet/minecraft/class_437;method_49589()Vnamed onDisplayedLnet/minecraft/client/gui/screen/Screen;onDisplayed()V
-
onDemoDeletionConfirmed
private void onDemoDeletionConfirmed(boolean delete) - Mappings:
Namespace Name Mixin selector official cLeul;c(Z)Vintermediary method_20375Lnet/minecraft/class_442;method_20375(Z)Vnamed onDemoDeletionConfirmedLnet/minecraft/client/gui/screen/TitleScreen;onDemoDeletionConfirmed(Z)V
-