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
public class MainMenuScreen extends Screen
-
-
Field Summary
Fields Modifier and Type Field Description private static ResourceLocationACCESSIBILITY_TEXTUREprivate intcopyrightWidthprivate intcopyrightXstatic RenderSkyboxCubeCUBE_MAPprivate longfadeInStartprivate booleanfadingprivate static org.apache.logging.log4j.LoggerLOGGERprivate booleanminceraftEasterEggprivate static ResourceLocationMINECRAFT_EDITIONprivate static ResourceLocationMINECRAFT_LOGOprivate NotificationModUpdateScreenmodUpdateNotificationprivate RenderSkyboxpanoramaprivate static ResourceLocationPANORAMA_OVERLAYprivate booleanrealmsNotificationsInitializedprivate ScreenrealmsNotificationsScreenprivate ButtonresetDemoButtonprivate java.lang.Stringsplash-
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
Constructors Constructor Description MainMenuScreen()MainMenuScreen(boolean p_i51107_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancheckDemoWorldPresence()private voidconfirmDemo(boolean p_213087_1_)private voidcreateDemoMenuOptions(int p_73972_1_, int p_73972_2_)private voidcreateNormalMenuOptions(int p_73969_1_, int p_73969_2_)protected voidinit()booleanisPauseScreen()booleanmouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)static java.util.concurrent.CompletableFuture<java.lang.Void>preloadResources(TextureManager p_213097_0_, java.util.concurrent.Executor p_213097_1_)private voidrealmsButtonClicked()private booleanrealmsNotificationsEnabled()voidremoved()voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)booleanshouldCloseOnEsc()voidtick()-
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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
CUBE_MAP
public static final RenderSkyboxCube CUBE_MAP
-
PANORAMA_OVERLAY
private static final ResourceLocation PANORAMA_OVERLAY
-
ACCESSIBILITY_TEXTURE
private static final ResourceLocation ACCESSIBILITY_TEXTURE
-
minceraftEasterEgg
private final boolean minceraftEasterEgg
-
splash
@Nullable private java.lang.String splash
-
resetDemoButton
private Button resetDemoButton
-
MINECRAFT_LOGO
private static final ResourceLocation MINECRAFT_LOGO
-
MINECRAFT_EDITION
private static final ResourceLocation MINECRAFT_EDITION
-
realmsNotificationsInitialized
private boolean realmsNotificationsInitialized
-
realmsNotificationsScreen
private Screen realmsNotificationsScreen
-
copyrightWidth
private int copyrightWidth
-
copyrightX
private int copyrightX
-
panorama
private final RenderSkybox panorama
-
fading
private final boolean fading
-
fadeInStart
private long fadeInStart
-
modUpdateNotification
private NotificationModUpdateScreen modUpdateNotification
-
-
Method Detail
-
realmsNotificationsEnabled
private boolean realmsNotificationsEnabled()
-
preloadResources
public static java.util.concurrent.CompletableFuture<java.lang.Void> preloadResources(TextureManager p_213097_0_, java.util.concurrent.Executor p_213097_1_)
-
isPauseScreen
public boolean isPauseScreen()
- Overrides:
isPauseScreenin classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()
- Overrides:
shouldCloseOnEscin classScreen
-
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
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- Specified by:
renderin interfaceIRenderable- Overrides:
renderin classScreen
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
-
confirmDemo
private void confirmDemo(boolean p_213087_1_)
-
-