Package net.minecraft.client.gui.screens
Class TitleScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.TitleScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Stringprivate longprivate booleanprivate static final org.slf4j.Loggerprivate final LogoRendererprivate RealmsNotificationsScreenA screen generated by realms for notifications drawn in addition to the main menu (buttons and such from both are drawn at the same time).private SplashRendererprivate static final ComponentFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionTitleScreen(boolean pFading) TitleScreen(boolean pFading, LogoRenderer pLogoRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()booleanprivate booleanprivate voidconfirmDemo(boolean pConfirmed) private intcreateDemoMenuOptions(int pY, int pRowHeight) private intcreateNormalMenuOptions(int pY, int pRowHeight) private intcreateTestWorldButton(int pY, int pRowHeight) private Componentprotected voidinit()booleanbooleanmouseClicked(MouseButtonEvent p_446070_, boolean p_435005_) private booleanstatic voidregisterTextures(TextureManager pTextureManager) voidremoved()voidrender(GuiGraphics p_282860_, int p_281753_, int p_283539_, float p_282628_) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics p_294355_, int p_295208_, int p_294981_, float p_294740_) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TITLE
-
COPYRIGHT_TEXT
-
DEMO_LEVEL_ID
- See Also:
-
splash
-
realmsNotificationsScreen
A screen generated by realms for notifications drawn in addition to the main menu (buttons and such from both are drawn at the same time). May be null. -
fading
private boolean fading -
fadeInStart
private long fadeInStart -
logoRenderer
-
-
Constructor Details
-
TitleScreen
public TitleScreen() -
TitleScreen
public TitleScreen(boolean pFading) -
TitleScreen
-
-
Method Details
-
realmsNotificationsEnabled
private boolean realmsNotificationsEnabled() -
tick
public void tick() -
registerTextures
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
init
protected void init() -
createTestWorldButton
private int createTestWorldButton(int pY, int pRowHeight) -
createNormalMenuOptions
private int createNormalMenuOptions(int pY, int pRowHeight) -
getMultiplayerDisabledReason
-
createDemoMenuOptions
private int createDemoMenuOptions(int pY, int pRowHeight) -
checkDemoWorldPresence
private boolean checkDemoWorldPresence() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_282860_- the GuiGraphics object used for rendering.p_281753_- the x-coordinate of the mouse cursor.p_283539_- the y-coordinate of the mouse cursor.p_282628_- the partial tick time.
-
renderBackground
- Overrides:
renderBackgroundin classScreen
-
mouseClicked
-
removed
public void removed() -
added
public void added() -
confirmDemo
private void confirmDemo(boolean pConfirmed) -
canInterruptWithAnotherScreen
public boolean canInterruptWithAnotherScreen()- Overrides:
canInterruptWithAnotherScreenin classScreen
-