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/TitleScreenintermediary net/minecraft/class_442official fzs
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate longprivate ButtonWidgetprivate static final Textprivate static final Stringprivate booleanprivate static final floatprivate static final Loggerprivate final LogoDrawerprivate static final Textprivate @Nullable RealmsNotificationsScreenprivate @Nullable SplashTextRendererFields 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, 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 intaddDemoWidgets(int y, int spacingY) private intaddDevelopmentWidgets(int y, int spacingY) private intaddNormalWidgets(int y, int spacingY) private booleanprotected voidinit()Called when a screen should be initialized.private booleanbooleanmouseClicked(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 usingbeforeinvalid reference
MinecraftClient#setScreeninit()oris called.invalid reference
#initTabNavigation()static voidregisterTextures(TextureManager textureManager) voidremoved()voidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.protected voidrenderPanoramaBackground(DrawContext context, float deltaTicks) private voidsetWidgetAlpha(float alpha) booleanChecks whether this screen should be closed when the escape key is pressed.booleanvoidtick()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, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldHideStatusEffectHud, switchFocus, updateNarratorMethods 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
getBorder, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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 LOGGERLnet/minecraft/client/gui/screen/TitleScreen;LOGGER:Lorg/slf4j/Logger;intermediary field_23775Lnet/minecraft/class_442;field_23775:Lorg/slf4j/Logger;official aLfzs;a:Lorg/slf4j/Logger;
-
NARRATOR_SCREEN_TITLE
- Mappings:
Namespace Name Mixin selector named NARRATOR_SCREEN_TITLELnet/minecraft/client/gui/screen/TitleScreen;NARRATOR_SCREEN_TITLE:Lnet/minecraft/text/Text;intermediary field_47850Lnet/minecraft/class_442;field_47850:Lnet/minecraft/class_2561;official bLfzs;b:Lxg;
-
COPYRIGHT
- Mappings:
Namespace Name Mixin selector named COPYRIGHTLnet/minecraft/client/gui/screen/TitleScreen;COPYRIGHT:Lnet/minecraft/text/Text;intermediary field_32271Lnet/minecraft/class_442;field_32271:Lnet/minecraft/class_2561;official cLfzs;c:Lxg;
-
DEMO_WORLD_NAME
- See Also:
- Mappings:
Namespace Name Mixin selector named DEMO_WORLD_NAMELnet/minecraft/client/gui/screen/TitleScreen;DEMO_WORLD_NAME:Ljava/lang/String;intermediary field_32272Lnet/minecraft/class_442;field_32272:Ljava/lang/String;official dLfzs;d:Ljava/lang/String;
-
field_49900
private static final float field_49900- See Also:
- Mappings:
Namespace Name Mixin selector named field_49900Lnet/minecraft/client/gui/screen/TitleScreen;field_49900:Fintermediary field_49900Lnet/minecraft/class_442;field_49900:Fofficial sLfzs;s:F
-
splashText
- Mappings:
Namespace Name Mixin selector named splashTextLnet/minecraft/client/gui/screen/TitleScreen;splashText:Lnet/minecraft/client/gui/screen/SplashTextRenderer;intermediary field_2586Lnet/minecraft/class_442;field_2586:Lnet/minecraft/class_8519;official uLfzs;u:Lfvc;
-
buttonResetDemo
- Mappings:
Namespace Name Mixin selector named buttonResetDemoLnet/minecraft/client/gui/screen/TitleScreen;buttonResetDemo:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2590Lnet/minecraft/class_442;field_2590:Lnet/minecraft/class_4185;official vLfzs;v:Lfty;
-
realmsNotificationGui
- Mappings:
Namespace Name Mixin selector named realmsNotificationGuiLnet/minecraft/client/gui/screen/TitleScreen;realmsNotificationGui:Lnet/minecraft/client/realms/gui/screen/RealmsNotificationsScreen;intermediary field_2592Lnet/minecraft/class_442;field_2592:Lnet/minecraft/class_4399;official wLfzs;w:Lfoi;
-
backgroundAlpha
private float backgroundAlpha- Mappings:
Namespace Name Mixin selector named backgroundAlphaLnet/minecraft/client/gui/screen/TitleScreen;backgroundAlpha:Fintermediary field_49514Lnet/minecraft/class_442;field_49514:Fofficial xLfzs;x:F
-
doBackgroundFade
private boolean doBackgroundFade- Mappings:
Namespace Name Mixin selector named doBackgroundFadeLnet/minecraft/client/gui/screen/TitleScreen;doBackgroundFade:Zintermediary field_18222Lnet/minecraft/class_442;field_18222:Zofficial yLfzs;y:Z
-
backgroundFadeStart
private long backgroundFadeStart- Mappings:
Namespace Name Mixin selector named backgroundFadeStartLnet/minecraft/client/gui/screen/TitleScreen;backgroundFadeStart:Jintermediary field_17772Lnet/minecraft/class_442;field_17772:Jofficial zLfzs;z:J
-
logoDrawer
- Mappings:
Namespace Name Mixin selector named logoDrawerLnet/minecraft/client/gui/screen/TitleScreen;logoDrawer:Lnet/minecraft/client/gui/LogoDrawer;intermediary field_41847Lnet/minecraft/class_442;field_41847:Lnet/minecraft/class_8020;official ALfzs;A:Lfup;
-
-
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)Vintermediary <init>Lnet/minecraft/class_442;<init>(Z)Vofficial <init>Lfzs;<init>(Z)V
-
TitleScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/TitleScreen;<init>(ZLnet/minecraft/client/gui/LogoDrawer;)Vintermediary <init>Lnet/minecraft/class_442;<init>(ZLnet/minecraft/class_8020;)Vofficial <init>Lfzs;<init>(ZLfup;)V
-
-
Method Details
-
isRealmsNotificationsGuiDisplayed
private boolean isRealmsNotificationsGuiDisplayed()- Mappings:
Namespace Name Mixin selector named isRealmsNotificationsGuiDisplayedLnet/minecraft/client/gui/screen/TitleScreen;isRealmsNotificationsGuiDisplayed()Zintermediary method_2253Lnet/minecraft/class_442;method_2253()Zofficial mLfzs;m()Z
-
tick
public void tick() -
registerTextures
- Mappings:
Namespace Name Mixin selector named registerTexturesLnet/minecraft/client/gui/screen/TitleScreen;registerTextures(Lnet/minecraft/client/texture/TextureManager;)Vintermediary method_65810Lnet/minecraft/class_442;method_65810(Lnet/minecraft/class_1060;)Vofficial aLfzs;a(Lhks;)V
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector named shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Zofficial kLfzq;k()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 named shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Zofficial aD_Lfzq;aD_()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 addDevelopmentWidgetsLnet/minecraft/client/gui/screen/TitleScreen;addDevelopmentWidgets(II)Iintermediary method_64237Lnet/minecraft/class_442;method_64237(II)Iofficial aLfzs;a(II)I
-
addNormalWidgets
private int addNormalWidgets(int y, int spacingY) - Mappings:
Namespace Name Mixin selector named addNormalWidgetsLnet/minecraft/client/gui/screen/TitleScreen;addNormalWidgets(II)Iintermediary method_2249Lnet/minecraft/class_442;method_2249(II)Iofficial bLfzs;b(II)I
-
getMultiplayerDisabledText
- Mappings:
Namespace Name Mixin selector named getMultiplayerDisabledTextLnet/minecraft/client/gui/screen/TitleScreen;getMultiplayerDisabledText()Lnet/minecraft/text/Text;intermediary method_44692Lnet/minecraft/class_442;method_44692()Lnet/minecraft/class_2561;official ELfzs;E()Lxg;
-
addDemoWidgets
private int addDemoWidgets(int y, int spacingY) - Mappings:
Namespace Name Mixin selector named addDemoWidgetsLnet/minecraft/client/gui/screen/TitleScreen;addDemoWidgets(II)Iintermediary method_2251Lnet/minecraft/class_442;method_2251(II)Iofficial cLfzs;c(II)I
-
canReadDemoWorldData
private boolean canReadDemoWorldData()- Mappings:
Namespace Name Mixin selector named canReadDemoWorldDataLnet/minecraft/client/gui/screen/TitleScreen;canReadDemoWorldData()Zintermediary method_31129Lnet/minecraft/class_442;method_31129()Zofficial FLfzs;F()Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfvb;a(Lftk;IIF)V
-
setWidgetAlpha
private void setWidgetAlpha(float alpha) - Mappings:
Namespace Name Mixin selector named setWidgetAlphaLnet/minecraft/client/gui/screen/TitleScreen;setWidgetAlpha(F)Vintermediary method_59752Lnet/minecraft/class_442;method_59752(F)Vofficial aLfzs;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:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLfzq;b(Lftk;IIF)V
-
renderPanoramaBackground
- Overrides:
renderPanoramaBackgroundin classScreen- Mappings:
Namespace Name Mixin selector named renderPanoramaBackgroundLnet/minecraft/client/gui/screen/Screen;renderPanoramaBackground(Lnet/minecraft/client/gui/DrawContext;F)Vintermediary method_57728Lnet/minecraft/class_437;method_57728(Lnet/minecraft/class_332;F)Vofficial aLfzq;a(Lftk;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 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 named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfvv;a(DDI)Z
-
removed
public void removed() -
onDisplayed
public void onDisplayed()Called when the screen is displayed usingbeforeinvalid reference
MinecraftClient#setScreeninit()oris called.invalid reference
#initTabNavigation()- Overrides:
onDisplayedin classScreen- Mappings:
Namespace Name Mixin selector named onDisplayedLnet/minecraft/client/gui/screen/Screen;onDisplayed()Vintermediary method_49589Lnet/minecraft/class_437;method_49589()Vofficial aG_Lfzq;aG_()V
-
onDemoDeletionConfirmed
private void onDemoDeletionConfirmed(boolean delete) - Mappings:
Namespace Name Mixin selector named onDemoDeletionConfirmedLnet/minecraft/client/gui/screen/TitleScreen;onDemoDeletionConfirmed(Z)Vintermediary method_20375Lnet/minecraft/class_442;method_20375(Z)Vofficial cLfzs;c(Z)V
-