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 ResourceLocation
ACCESSIBILITY_TEXTURE
private int
copyrightWidth
private int
copyrightX
static RenderSkyboxCube
CUBE_MAP
private long
fadeInStart
private boolean
fading
private static org.apache.logging.log4j.Logger
LOGGER
private boolean
minceraftEasterEgg
private static ResourceLocation
MINECRAFT_EDITION
private static ResourceLocation
MINECRAFT_LOGO
private NotificationModUpdateScreen
modUpdateNotification
private RenderSkybox
panorama
private static ResourceLocation
PANORAMA_OVERLAY
private boolean
realmsNotificationsInitialized
private Screen
realmsNotificationsScreen
private Button
resetDemoButton
private java.lang.String
splash
-
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 boolean
checkDemoWorldPresence()
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
isPauseScreen()
boolean
mouseClicked(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 void
realmsButtonClicked()
private boolean
realmsNotificationsEnabled()
void
removed()
void
render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
boolean
shouldCloseOnEsc()
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 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:
isPauseScreen
in classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()
- Overrides:
shouldCloseOnEsc
in 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:
render
in interfaceIRenderable
- Overrides:
render
in 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_)
-
-