public class MainMenuScreen extends Screen
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
ACCESSIBILITY_TEXTURES |
private Button |
buttonResetDemo |
private long |
firstRenderTime |
private boolean |
hasCheckedForRealmsNotification |
private static ResourceLocation |
MINECRAFT_TITLE_EDITION |
private static ResourceLocation |
MINECRAFT_TITLE_TEXTURES |
private NotificationModUpdateScreen |
modUpdateNotification |
private RenderSkybox |
panorama |
private static ResourceLocation |
PANORAMA_OVERLAY_TEXTURES |
static RenderSkyboxCube |
PANORAMA_RESOURCES |
private Screen |
realmsNotification |
private boolean |
showFadeInAnimation |
private boolean |
showTitleWronglySpelled |
private java.lang.String |
splashText |
private int |
widthCopyright |
private int |
widthCopyrightRest |
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
MainMenuScreen() |
MainMenuScreen(boolean fadeIn) |
Modifier and Type | Method and Description |
---|---|
private void |
addDemoButtons(int yIn,
int rowHeightIn) |
private void |
addSingleplayerMultiplayerButtons(int yIn,
int rowHeightIn) |
private boolean |
areRealmsNotificationsEnabled() |
private void |
deleteDemoWorld(boolean p_213087_1_) |
protected void |
init() |
boolean |
isPauseScreen() |
static java.util.concurrent.CompletableFuture<java.lang.Void> |
loadAsync(TextureManager texMngr,
java.util.concurrent.Executor backgroundExecutor) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
boolean |
shouldCloseOnEsc() |
private void |
switchToRealms() |
void |
tick() |
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedDefault
mouseMoved
public static final RenderSkyboxCube PANORAMA_RESOURCES
private static final ResourceLocation PANORAMA_OVERLAY_TEXTURES
private static final ResourceLocation ACCESSIBILITY_TEXTURES
private final boolean showTitleWronglySpelled
@Nullable private java.lang.String splashText
private Button buttonResetDemo
private static final ResourceLocation MINECRAFT_TITLE_TEXTURES
private static final ResourceLocation MINECRAFT_TITLE_EDITION
private boolean hasCheckedForRealmsNotification
private Screen realmsNotification
private int widthCopyright
private int widthCopyrightRest
private final RenderSkybox panorama
private final boolean showFadeInAnimation
private long firstRenderTime
private NotificationModUpdateScreen modUpdateNotification
public MainMenuScreen()
public MainMenuScreen(boolean fadeIn)
private boolean areRealmsNotificationsEnabled()
public static java.util.concurrent.CompletableFuture<java.lang.Void> loadAsync(TextureManager texMngr, java.util.concurrent.Executor backgroundExecutor)
public boolean isPauseScreen()
isPauseScreen
in class Screen
public boolean shouldCloseOnEsc()
shouldCloseOnEsc
in class Screen
private void addSingleplayerMultiplayerButtons(int yIn, int rowHeightIn)
private void addDemoButtons(int yIn, int rowHeightIn)
private void switchToRealms()
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class Screen
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
private void deleteDemoWorld(boolean p_213087_1_)