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.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 floatprivate 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 Buttonprivate SplashRendererprivate static final ComponentFields 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, narratorButton, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionTitleScreen(boolean fading) TitleScreen(boolean fading, LogoRenderer logoRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()private booleanprivate voidconfirmDemo(boolean confirmed) private intcreateDemoMenuOptions(int y, int rowHeight) private intcreateNormalMenuOptions(int y, int rowHeight) private intcreateTestWorldButton(int y, int rowHeight) private voidfadeWidgets(float alpha) private Componentprotected voidinit()booleanbooleanmouseClicked(double mouseX, double mouseY, int button) Called when a mouse button is clicked within the GUI element.private booleanstatic voidregisterTextures(TextureManager textureManager) voidremoved()voidrender(GuiGraphics p_282860_, int p_281753_, int p_283539_, float p_282628_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)replicates this method in place of a super call to insert an eventvoidrenderBackground(GuiGraphics p_294355_, int p_295208_, int p_294981_, float p_294740_) protected voidrenderPanorama(GuiGraphics p_330491_, float p_331140_) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, 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, 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
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. -
panoramaFade
private float panoramaFade -
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
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 y, int rowHeight) -
createNormalMenuOptions
private int createNormalMenuOptions(int y, int rowHeight) -
getMultiplayerDisabledReason
-
createDemoMenuOptions
private int createDemoMenuOptions(int y, int rowHeight) -
checkDemoWorldPresence
private boolean checkDemoWorldPresence() -
render
Description copied from class:ScreenNeo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)replicates this method in place of a super call to insert an event- 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.
-
fadeWidgets
private void fadeWidgets(float alpha) -
renderBackground
- Overrides:
renderBackgroundin classScreen
-
renderPanorama
- Overrides:
renderPanoramain classScreen
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Description copied from interface:ContainerEventHandlerCalled when a mouse button is clicked within the GUI element.- Parameters:
mouseX- the X coordinate of the mouse.mouseY- the Y coordinate of the mouse.button- the button that was clicked.- Returns:
trueif the event is consumed,falseotherwise.
-
removed
public void removed() -
added
public void added() -
confirmDemo
private void confirmDemo(boolean confirmed)
-