Package net.minecraft.client.gui.screens
Class TitleScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
Modifier and TypeFieldDescriptionstatic final Component
static final CubeMap
private static final String
private long
private final boolean
private static final org.slf4j.Logger
private final LogoRenderer
private TitleScreenModUpdateIndicator
private final PanoramaRenderer
private static final ResourceLocation
private RealmsNotificationsScreen
private Button
private String
private TitleScreen.WarningLabel
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionTitleScreen
(boolean p_96733_) TitleScreen
(boolean p_265779_, LogoRenderer p_265067_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
added()
private boolean
private void
confirmDemo
(boolean p_96778_) private void
createDemoMenuOptions
(int p_96773_, int p_96774_) private void
createNormalMenuOptions
(int p_96764_, int p_96765_) private Component
protected void
init()
boolean
boolean
mouseClicked
(double p_96735_, double p_96736_, int p_96737_) static CompletableFuture<Void>
preloadResources
(TextureManager p_96755_, Executor p_96756_) private void
private boolean
void
removed()
void
boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEMO_LEVEL_ID
- See Also:
-
COPYRIGHT_TEXT
-
CUBE_MAP
-
PANORAMA_OVERLAY
-
splash
-
resetDemoButton
-
realmsNotificationsScreen
-
panorama
-
fading
private final 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:
isPauseScreen
in classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEsc
in 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() -
realmsButtonClicked
private void realmsButtonClicked() -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in 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_)
-