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 Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Stringprivate longprivate booleanprivate static final org.slf4j.Loggerprivate final LogoRendererprivate @Nullable 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 @Nullable SplashRendererprivate static final ComponentFields inherited from class 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 fading) TitleScreen(boolean fading, @Nullable LogoRenderer logoRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()booleanprivate booleanprivate voidconfirmDemo(boolean result) private intcreateDemoMenuOptions(int topPos, int spacing) private intcreateNormalMenuOptions(int topPos, int spacing) private intcreateTestWorldButton(int topPos, int spacing) private @Nullable Componentprotected voidinit()booleanbooleanmouseClicked(MouseButtonEvent event, boolean doubleClick) private booleanstatic voidregisterTextures(TextureManager textureManager) voidremoved()voidrender(GuiGraphics graphics, int mouseX, int mouseY, float a) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics graphics, int mouseX, int mouseY, float a) booleanvoidtick()Methods inherited from class 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, 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 AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface 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 fading) -
TitleScreen
-
-
Method Details
-
realmsNotificationsEnabled
private boolean realmsNotificationsEnabled() -
tick
-
registerTextures
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
init
-
createTestWorldButton
private int createTestWorldButton(int topPos, int spacing) -
createNormalMenuOptions
private int createNormalMenuOptions(int topPos, int spacing) -
getMultiplayerDisabledReason
-
createDemoMenuOptions
private int createDemoMenuOptions(int topPos, int spacing) -
checkDemoWorldPresence
private boolean checkDemoWorldPresence() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
graphics- the GuiGraphics object used for rendering.mouseX- the x-coordinate of the mouse cursor.mouseY- the y-coordinate of the mouse cursor.a- the partial tick time.
-
renderBackground
- Overrides:
renderBackgroundin classScreen
-
mouseClicked
-
removed
-
added
-
confirmDemo
private void confirmDemo(boolean result) -
canInterruptWithAnotherScreen
public boolean canInterruptWithAnotherScreen()- Overrides:
canInterruptWithAnotherScreenin classScreen
-