public class MainMenuScreen extends Screen
Modifier and Type | Field and 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 |
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
MainMenuScreen() |
MainMenuScreen(boolean p_i51107_1_) |
Modifier and Type | Method and 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() |
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
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final org.apache.logging.log4j.Logger LOGGER
public static final RenderSkyboxCube CUBE_MAP
private static final ResourceLocation PANORAMA_OVERLAY
private static final ResourceLocation ACCESSIBILITY_TEXTURE
private final boolean minceraftEasterEgg
@Nullable private java.lang.String splash
private Button resetDemoButton
private static final ResourceLocation MINECRAFT_LOGO
private static final ResourceLocation MINECRAFT_EDITION
private boolean realmsNotificationsInitialized
private Screen realmsNotificationsScreen
private int copyrightWidth
private int copyrightX
private final RenderSkybox panorama
private final boolean fading
private long fadeInStart
private NotificationModUpdateScreen modUpdateNotification
public MainMenuScreen()
public MainMenuScreen(boolean p_i51107_1_)
private boolean realmsNotificationsEnabled()
public static java.util.concurrent.CompletableFuture<java.lang.Void> preloadResources(TextureManager p_213097_0_, java.util.concurrent.Executor p_213097_1_)
public boolean isPauseScreen()
isPauseScreen
in class Screen
public boolean shouldCloseOnEsc()
shouldCloseOnEsc
in class Screen
private void createNormalMenuOptions(int p_73969_1_, int p_73969_2_)
private void createDemoMenuOptions(int p_73972_1_, int p_73972_2_)
private boolean checkDemoWorldPresence()
private void realmsButtonClicked()
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
render
in interface IRenderable
render
in class Screen
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
private void confirmDemo(boolean p_213087_1_)