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 ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Stringprivate static final floatprivate longprivate booleanprivate static final org.slf4j.Loggerprivate final LogoRendererprivate TitleScreenModUpdateIndicatorprivate floatprivate RealmsNotificationsScreenprivate Buttonprivate SplashRendererprivate static final Componentprivate TitleScreen.WarningLabelFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionTitleScreen(boolean p_96733_) TitleScreen(boolean p_265779_, LogoRenderer p_265067_) -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()private booleanprivate voidconfirmDemo(boolean p_96778_) private voidcreateDemoMenuOptions(int p_96773_, int p_96774_) private voidcreateNormalMenuOptions(int p_96764_, int p_96765_) private voidfadeWidgets(float p_335005_) private Componentprotected voidinit()booleanbooleanmouseClicked(double p_96735_, double p_96736_, int p_96737_) static CompletableFuture<Void> preloadResources(TextureManager p_96755_, Executor p_96756_) private booleanvoidremoved()voidrender(GuiGraphics p_282860_, int p_281753_, int p_283539_, float p_282628_) voidrenderBackground(GuiGraphics p_301363_, int p_300303_, int p_299762_, float p_300311_) protected voidrenderPanorama(GuiGraphics p_335595_, float p_331154_) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods 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
mouseMovedMethods 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:
-
FADE_IN_TIME
private static final float FADE_IN_TIME- See Also:
-
splash
-
resetDemoButton
-
realmsNotificationsScreen
-
panoramaFade
private float panoramaFade -
fading
private boolean fading -
fadeInStart
private long fadeInStart -
warningLabel
-
logoRenderer
-
modUpdateNotification
-
-
Constructor Details
-
TitleScreen
public TitleScreen() -
TitleScreen
public TitleScreen(boolean p_96733_) -
TitleScreen
-
-
Method Details
-
realmsNotificationsEnabled
private boolean realmsNotificationsEnabled() -
tick
public void tick() -
preloadResources
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
init
protected void init() -
createNormalMenuOptions
private void createNormalMenuOptions(int p_96764_, int p_96765_) -
getMultiplayerDisabledReason
-
createDemoMenuOptions
private void createDemoMenuOptions(int p_96773_, int p_96774_) -
checkDemoWorldPresence
private boolean checkDemoWorldPresence() -
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen
-
fadeWidgets
private void fadeWidgets(float p_335005_) -
renderBackground
- Overrides:
renderBackgroundin classScreen
-
renderPanorama
- Overrides:
renderPanoramain classScreen
-
mouseClicked
public boolean mouseClicked(double p_96735_, double p_96736_, int p_96737_) -
removed
public void removed() -
added
public void added() -
confirmDemo
private void confirmDemo(boolean p_96778_)
-