Package net.minecraft.client.gui.screen
Class MainMenuScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.MainMenuScreen
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private int
private int
static final RenderSkyboxCube
private long
private final boolean
private static final org.apache.logging.log4j.Logger
private final boolean
private static final ResourceLocation
private static final ResourceLocation
private NotificationModUpdateScreen
private final RenderSkybox
private static final ResourceLocation
private boolean
private Screen
private Button
private String
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private void
confirmDemo
(boolean p_213087_1_) private void
createDemoMenuOptions
(int p_73972_1_, int p_73972_2_) private void
createNormalMenuOptions
(int p_73969_1_, int p_73969_2_) protected void
init()
boolean
boolean
mouseClicked
(double p_231044_1_, double p_231044_3_, int p_231044_5_) static CompletableFuture<Void>
preloadResources
(TextureManager p_213097_0_, Executor p_213097_1_) private void
private boolean
void
removed()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, 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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
CUBE_MAP
-
PANORAMA_OVERLAY
-
ACCESSIBILITY_TEXTURE
-
minceraftEasterEgg
private final boolean minceraftEasterEgg -
splash
-
resetDemoButton
-
MINECRAFT_LOGO
-
MINECRAFT_EDITION
-
realmsNotificationsInitialized
private boolean realmsNotificationsInitialized -
realmsNotificationsScreen
-
copyrightWidth
private int copyrightWidth -
copyrightX
private int copyrightX -
panorama
-
fading
private final boolean fading -
fadeInStart
private long fadeInStart -
modUpdateNotification
-
-
Constructor Details
-
MainMenuScreen
public MainMenuScreen() -
MainMenuScreen
public MainMenuScreen(boolean p_i51107_1_)
-
-
Method Details
-
realmsNotificationsEnabled
private boolean realmsNotificationsEnabled() -
tick
public void tick() -
preloadResources
public static CompletableFuture<Void> preloadResources(TextureManager p_213097_0_, Executor p_213097_1_) -
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_73969_1_, int p_73969_2_) -
createDemoMenuOptions
private void createDemoMenuOptions(int p_73972_1_, int p_73972_2_) -
checkDemoWorldPresence
private boolean checkDemoWorldPresence() -
realmsButtonClicked
private void realmsButtonClicked() -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) -
removed
public void removed() -
confirmDemo
private void confirmDemo(boolean p_213087_1_)
-