Package com.mojang.realmsclient
Class RealmsMainScreen
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Widget
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) static class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescription(package private) int
private Button
(package private) static ResourceLocation
private Button
private int
private int
(package private) static boolean
(package private) static boolean
(package private) int
private Button
private static ResourceLocation
private static Component
private Button
private ReentrantLock
private boolean
private Button
(package private) static ResourceLocation
private static ResourceLocation
private boolean
private static ResourceLocation
private static ResourceLocation
private MultiLineLabel
private boolean
(package private) static boolean
private boolean
(package private) boolean
(package private) RealmsMainScreen.HoveredElement
private static ResourceLocation
private static ResourceLocation
private com.google.common.util.concurrent.RateLimiter
private boolean
(package private) Screen
private static int
private static ResourceLocation
private static Component
private Button
(package private) static org.apache.logging.log4j.Logger
private static ResourceLocation
private static ResourceLocation
private static Component
private Button
(package private) String
(package private) static Component
(package private) int
private static ResourceLocation
private static ResourceLocation
(package private) static boolean
(package private) static Component
(package private) Button
private static ResourceLocation
private static Component
(package private) boolean
private static ResourceLocation
(package private) static RealmsDataFetcher
(package private) RealmsMainScreen.RealmSelectionList
(package private) static Screen
private boolean
(package private) List<RealmsServer>
private static boolean
private Button
(package private) static Component
(package private) long
private static Component
private static Component
private static Component
private static Component
private static Component
private static Component
(package private) static Component
private boolean
private Button
(package private) static Component
(package private) static Component
(package private) static Component
private static List<ResourceLocation>
(package private) static Component
private static ResourceLocation
(package private) static Component
private boolean
(package private) static Component
(package private) static ResourceLocation
Fields inherited from class net.minecraft.realms.RealmsScreen
COLOR_BLACK, COLOR_BRIGHT_YELLOW, COLOR_BUTTON_YELLOW, COLOR_DARK_GRAY, COLOR_DARK_GREEN, COLOR_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED, COLOR_RED_FADE, COLOR_WHITE, COLOR_YELLOW, COMPONENT_HEIGHT, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_HAT_HEIGHT, SKIN_HAT_U, SKIN_HAT_V, SKIN_HAT_WIDTH, SKIN_HEAD_HEIGHT, SKIN_HEAD_U, SKIN_HEAD_V, SKIN_HEAD_WIDTH, SKIN_TEX_HEIGHT, SKIN_TEX_WIDTH, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URL
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
charTyped(char p_86388_, int p_86389_)
private void
(package private) void
private void
void
(package private) void
configureClicked(RealmsServer p_86657_)
(package private) void
(package private) void
drawConfigure(PoseStack p_86662_, int p_86663_, int p_86664_, int p_86665_, int p_86666_)
(package private) void
drawExpired(PoseStack p_86577_, int p_86578_, int p_86579_, int p_86580_, int p_86581_)
(package private) void
drawExpiring(PoseStack p_86538_, int p_86539_, int p_86540_, int p_86541_, int p_86542_, int p_86543_)
(package private) void
drawInvitationPendingIcon(PoseStack p_86425_, int p_86426_, int p_86427_, int p_86428_, int p_86429_, boolean p_86430_, boolean p_86431_)
(package private) void
(package private) void
private void
private void
drawRealmsLogo(PoseStack p_86409_, int p_86410_, int p_86411_)
(package private) RealmsServer
findServer(long p_86405_)
private static boolean
void
init()
private boolean
inPendingInvitationArea(double p_86572_, double p_86573_)
private boolean
isOutsidePopup(double p_86394_, double p_86395_)
private boolean
isSelfOwnedNonExpiredServer(RealmsServer p_86689_)
(package private) boolean
isSelfOwnedServer(RealmsServer p_86684_)
boolean
keyPressed(int p_86401_, int p_86402_, int p_86403_)
(package private) void
leaveClicked(RealmsServer p_86670_)
private void
leaveServer(boolean p_86624_)
boolean
mouseClicked(double p_86397_, double p_86398_, int p_86399_)
(package private) void
(package private) void
onRenew()
private void
pendingButtonPress(Button p_86519_)
private void
void
play(RealmsServer p_86516_, Screen p_86517_)
(package private) int
popupX0()
(package private) int
popupY0()
void
removed()
void
(package private) void
removeServer(RealmsServer p_86677_)
void
private void
renderLocal(PoseStack p_86532_)
(package private) void
renderMoreInfo(PoseStack p_86418_, int p_86419_, int p_86420_, int p_86421_, int p_86422_, boolean p_86423_)
protected void
renderMousehoverTooltip(PoseStack p_86442_, List<Component> p_86443_, int p_86444_, int p_86445_)
(package private) void
renderNews(PoseStack p_86433_, int p_86434_, int p_86435_, boolean p_86436_, int p_86437_, int p_86438_, boolean p_86439_, boolean p_86440_)
private void
renderStage(PoseStack p_86575_)
private void
void
setCreatedTrial(boolean p_167191_)
private void
setTooltip(Iterable<Component> p_167189_)
(package private) void
setTooltip(Component... p_86527_)
private boolean
shouldConfigureButtonBeVisible(RealmsServer p_86620_)
private boolean
shouldLeaveButtonBeVisible(RealmsServer p_86645_)
private boolean
shouldPlayButtonBeActive(RealmsServer p_86563_)
private boolean
shouldRenewButtonBeActive(RealmsServer p_86595_)
private boolean
boolean
private boolean
private void
private void
private void
private void
void
tick()
(package private) void
updateButtonStates(RealmsServer p_86514_)
static void
updateTeaserImages(ResourceManager p_86407_)
Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, 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.components.events.ContainerEventHandler
changeFocus, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
static final org.apache.logging.log4j.Logger LOGGER -
ON_ICON_LOCATION
-
OFF_ICON_LOCATION
-
EXPIRED_ICON_LOCATION
-
EXPIRES_SOON_ICON_LOCATION
-
LEAVE_ICON_LOCATION
-
INVITATION_ICONS_LOCATION
-
INVITE_ICON_LOCATION
-
WORLDICON_LOCATION
-
LOGO_LOCATION
-
CONFIGURE_LOCATION
-
QUESTIONMARK_LOCATION
-
NEWS_LOCATION
-
POPUP_LOCATION
-
DARKEN_LOCATION
-
CROSS_ICON_LOCATION
-
TRIAL_ICON_LOCATION
-
BUTTON_LOCATION
-
NO_PENDING_INVITES_TEXT
-
PENDING_INVITES_TEXT
-
TRIAL_MESSAGE_LINES
-
SERVER_UNITIALIZED_TEXT
-
SUBSCRIPTION_EXPIRED_TEXT
-
SUBSCRIPTION_RENEW_TEXT
-
TRIAL_EXPIRED_TEXT
-
SUBSCRIPTION_CREATE_TEXT
-
SELECT_MINIGAME_PREFIX
-
POPUP_TEXT
-
SERVER_EXPIRED_TOOLTIP
-
SERVER_EXPIRES_SOON_TOOLTIP
-
SERVER_EXPIRES_IN_DAY_TOOLTIP
-
SERVER_OPEN_TOOLTIP
-
SERVER_CLOSED_TOOLTIP
-
LEAVE_SERVER_TOOLTIP
-
CONFIGURE_SERVER_TOOLTIP
-
SERVER_INFO_TOOLTIP
-
NEWS_TOOLTIP
-
UNITIALIZED_WORLD_NARRATION
-
TRIAL_TEXT
-
REALMS_DATA_FETCHER
-
overrideConfigure
static boolean overrideConfigure -
lastScrollYPosition
private static int lastScrollYPosition -
hasParentalConsent
static volatile boolean hasParentalConsent -
checkedParentalConsent
static volatile boolean checkedParentalConsent -
checkedClientCompatability
static volatile boolean checkedClientCompatability -
realmsGenericErrorScreen
-
regionsPinged
private static boolean regionsPinged -
inviteNarrationLimiter
private final com.google.common.util.concurrent.RateLimiter inviteNarrationLimiter -
dontSetConnectedToRealms
private boolean dontSetConnectedToRealms -
lastScreen
-
realmSelectionList
-
realmsSelectionListAdded
private boolean realmsSelectionListAdded -
selectedServerId
long selectedServerId -
playButton
Button playButton -
backButton
-
renewButton
-
configureButton
-
leaveButton
-
toolTip
-
realmsServers
List<RealmsServer> realmsServers -
numberOfPendingInvites
volatile int numberOfPendingInvites -
animTick
int animTick -
hasFetchedServers
private boolean hasFetchedServers -
popupOpenedByUser
boolean popupOpenedByUser -
justClosedPopup
private boolean justClosedPopup -
trialsAvailable
private volatile boolean trialsAvailable -
createdTrial
private volatile boolean createdTrial -
showingPopup
private volatile boolean showingPopup -
hasUnreadNews
volatile boolean hasUnreadNews -
newsLink
-
carouselIndex
private int carouselIndex -
carouselTick
private int carouselTick -
hasSwitchedCarouselImage
private boolean hasSwitchedCarouselImage -
keyCombos
-
clicks
int clicks -
connectLock
-
formattedPopup
-
hoveredElement
RealmsMainScreen.HoveredElement hoveredElement -
showPopupButton
-
pendingInvitesButton
-
newsButton
-
createTrialButton
-
buyARealmButton
-
closeButton
-
-
Constructor Details
-
RealmsMainScreen
-
-
Method Details
-
shouldShowMessageInList
private boolean shouldShowMessageInList() -
shouldShowPopup
public boolean shouldShowPopup() -
init
public void init() -
hasParentalConsent
private static boolean hasParentalConsent() -
addButtons
public void addButtons() -
updateButtonStates
-
shouldShowPopupButton
private boolean shouldShowPopupButton() -
shouldPlayButtonBeActive
-
shouldRenewButtonBeActive
-
shouldConfigureButtonBeVisible
-
shouldLeaveButtonBeVisible
-
tick
public void tick() -
pingRegions
private void pingRegions() -
getOwnedNonExpiredWorldIds
-
removed
public void removed() -
setCreatedTrial
public void setCreatedTrial(boolean p_167191_) -
onRenew
void onRenew() -
checkClientCompatability
private void checkClientCompatability() -
checkUnreadNews
private void checkUnreadNews() -
checkParentalConsent
void checkParentalConsent() -
switchToStage
private void switchToStage() -
switchToLocal
private void switchToLocal() -
switchToProd
private void switchToProd() -
stopRealmsFetcher
private void stopRealmsFetcher() -
configureClicked
-
leaveClicked
-
saveListScrollPosition
private void saveListScrollPosition() -
findServer
-
leaveServer
private void leaveServer(boolean p_86624_) -
removeServer
-
removeSelection
public void removeSelection() -
keyPressed
public boolean keyPressed(int p_86401_, int p_86402_, int p_86403_)- Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
onClosePopup
void onClosePopup() -
charTyped
public boolean charTyped(char p_86388_, int p_86389_) -
render
-
drawRealmsLogo
-
mouseClicked
public boolean mouseClicked(double p_86397_, double p_86398_, int p_86399_) -
isOutsidePopup
private boolean isOutsidePopup(double p_86394_, double p_86395_) -
drawPopup
-
popupX0
int popupX0() -
popupY0
int popupY0() -
drawInvitationPendingIcon
void drawInvitationPendingIcon(PoseStack p_86425_, int p_86426_, int p_86427_, int p_86428_, int p_86429_, boolean p_86430_, boolean p_86431_) -
inPendingInvitationArea
private boolean inPendingInvitationArea(double p_86572_, double p_86573_) -
play
-
isSelfOwnedServer
-
isSelfOwnedNonExpiredServer
-
drawExpired
-
drawExpiring
void drawExpiring(PoseStack p_86538_, int p_86539_, int p_86540_, int p_86541_, int p_86542_, int p_86543_) -
drawOpen
-
drawClose
-
drawLeave
-
drawConfigure
-
renderMousehoverTooltip
-
renderMoreInfo
void renderMoreInfo(PoseStack p_86418_, int p_86419_, int p_86420_, int p_86421_, int p_86422_, boolean p_86423_) -
renderNews
void renderNews(PoseStack p_86433_, int p_86434_, int p_86435_, boolean p_86436_, int p_86437_, int p_86438_, boolean p_86439_, boolean p_86440_) -
renderLocal
-
renderStage
-
newScreen
-
closePopup
public void closePopup() -
setTooltip
-
setTooltip
-
pendingButtonPress
-