@Environment(value=CLIENT) public class TitleScreen extends Screen
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ACCESSIBILITY_ICON_TEXTURE |
private long |
backgroundFadeStart |
private RotatingCubeMapRenderer |
backgroundRenderer |
private ButtonWidget |
buttonResetDemo |
private int |
copyrightTextWidth |
private int |
copyrightTextX |
private boolean |
doBackgroundFade |
private static Identifier |
EDITION_TITLE_TEXTURE |
private static Logger |
field_23775 |
private boolean |
isMinceraft |
private static Identifier |
MINECRAFT_TITLE_TEXTURE |
static CubeMapRenderer |
PANORAMA_CUBE_MAP |
private static Identifier |
PANORAMA_OVERLAY |
private Screen |
realmsNotificationGui |
private boolean |
realmsNotificationsInitialized |
private String |
splashText |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
TitleScreen() |
TitleScreen(boolean doBackgroundFade) |
Modifier and Type | Method and Description |
---|---|
private boolean |
areRealmsNotificationsEnabled() |
protected void |
init() |
private void |
initWidgetsDemo(int y,
int spacingY) |
private void |
initWidgetsNormal(int y,
int spacingY) |
boolean |
isPauseScreen() |
static CompletableFuture<Void> |
loadTexturesAsync(TextureManager textureManager,
Executor executor) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
private void |
onDemoDeletionConfirmed(boolean delete) |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
boolean |
shouldCloseOnEsc() |
private void |
switchToRealms() |
void |
tick() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Logger field_23775
public static final CubeMapRenderer PANORAMA_CUBE_MAP
private static final Identifier PANORAMA_OVERLAY
private static final Identifier ACCESSIBILITY_ICON_TEXTURE
private static final Identifier MINECRAFT_TITLE_TEXTURE
private static final Identifier EDITION_TITLE_TEXTURE
private final boolean isMinceraft
private ButtonWidget buttonResetDemo
private boolean realmsNotificationsInitialized
private Screen realmsNotificationGui
private int copyrightTextWidth
private int copyrightTextX
private final RotatingCubeMapRenderer backgroundRenderer
private final boolean doBackgroundFade
private long backgroundFadeStart
public TitleScreen()
public TitleScreen(boolean doBackgroundFade)
private boolean areRealmsNotificationsEnabled()
public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor)
public boolean isPauseScreen()
isPauseScreen
in class Screen
public boolean shouldCloseOnEsc()
shouldCloseOnEsc
in class Screen
private void initWidgetsNormal(int y, int spacingY)
private void initWidgetsDemo(int y, int spacingY)
private void switchToRealms()
public void render(int mouseX, int mouseY, float delta)
public boolean mouseClicked(double mouseX, double mouseY, int button)
private void onDemoDeletionConfirmed(boolean delete)