@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
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
TitleScreen() |
TitleScreen(boolean doBackgroundFade) |
Modifier and Type | Method and Description |
---|---|
private boolean |
areRealmsNotificationsEnabled() |
protected void |
init()
Called when a screen should be initialized.
|
private void |
initWidgetsDemo(int y,
int spacingY) |
private void |
initWidgetsNormal(int y,
int spacingY) |
boolean |
isPauseScreen() |
static CompletableFuture<Void> |
loadTexturesAsync(TextureManager textureManager,
Executor executor) |
private boolean |
method_31129() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
private void |
onDemoDeletionConfirmed(boolean delete) |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
boolean |
shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.
|
private void |
switchToRealms() |
void |
tick() |
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, 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 void tick()
tick
in interface TickableElement
tick
in class Screen
public static CompletableFuture<Void> loadTexturesAsync(TextureManager textureManager, Executor executor)
public boolean isPauseScreen()
isPauseScreen
in class Screen
public boolean shouldCloseOnEsc()
shouldCloseOnEsc
in class Screen
protected void init()
This method is called when this screen is opened
or resized.
private void initWidgetsNormal(int y, int spacingY)
private void initWidgetsDemo(int y, int spacingY)
private boolean method_31129()
private void switchToRealms()
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
public boolean mouseClicked(double mouseX, double mouseY, int button)
GLFW
class.mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button numbertrue
to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int)
,
GLFW.GLFW_MOUSE_BUTTON_1
private void onDemoDeletionConfirmed(boolean delete)