net.minecraft.client.realms.gui.screen

public class RealmsMainScreen

extends RealmsScreen

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable

com.mojang.realmsclient.RealmsMainScreen
com.mojang.realmsclient.RealmsMainScreen
net.minecraft.class_4325
net.minecraft.client.realms.gui.screen.RealmsMainScreen

Field summary

Modifier and TypeField
private static final Identifier
INFO_SPRITE
INFO_SPRITE
field_45201
INFO_ICON_TEXTURE
private static final Identifier
NEW_REALM_SPRITE
NEW_REALM_SPRITE
field_45216
NEW_REALM_ICON_TEXTURE
private static final Identifier
EXPIRED_SPRITE
EXPIRED_SPRITE
field_45217
EXPIRED_STATUS_TEXTURE
private static final Identifier
EXPIRES_SOON_SPRITE
EXPIRES_SOON_SPRITE
field_45218
EXPIRES_SOON_STATUS_TEXTURE
private static final Identifier
OPEN_SPRITE
OPEN_SPRITE
field_45219
OPEN_STATUS_TEXTURE
private static final Identifier
CLOSED_SPRITE
CLOSED_SPRITE
field_45191
CLOSED_STATUS_TEXTURE
private static final Identifier
INVITE_SPRITE
INVITE_SPRITE
field_45192
INVITE_ICON_TEXTURE
private static final Identifier
NEWS_SPRITE
NEWS_SPRITE
field_45193
NEWS_ICON_TEXTURE
public static final Identifier
HARDCORE_MODE_SPRITE
HARDCORE_MODE_SPRITE
field_54806
HARDCORE_ICON_TEXTURE
private static final org.slf4j.Logger
LOGGER
LOGGER
field_19475
LOGGER
private static final Identifier
NO_REALMS_LOCATION
NO_REALMS_LOCATION
field_45195
NO_REALMS_TEXTURE
private static final Text
TITLE
TITLE
field_45196
MENU_TEXT
private static final Text
LOADING_TEXT
LOADING_TEXT
field_45197
LOADING_TEXT
private static final Text
SERVER_UNITIALIZED_TEXT
SERVER_UNITIALIZED_TEXT
field_26450
UNINITIALIZED_TEXT
private static final Text
SUBSCRIPTION_EXPIRED_TEXT
SUBSCRIPTION_EXPIRED_TEXT
field_26451
EXPIRED_LIST_TEXT
private static final Text
SUBSCRIPTION_RENEW_TEXT
SUBSCRIPTION_RENEW_TEXT
field_26452
EXPIRED_RENEW_TEXT
private static final Text
TRIAL_EXPIRED_TEXT
TRIAL_EXPIRED_TEXT
field_26453
EXPIRED_TRIAL_TEXT
private static final Text
PLAY_TEXT
PLAY_TEXT
field_42859
PLAY_TEXT
private static final Text
LEAVE_SERVER_TEXT
LEAVE_SERVER_TEXT
field_42860
LEAVE_TEXT
private static final Text
CONFIGURE_SERVER_TEXT
CONFIGURE_SERVER_TEXT
field_42861
CONFIGURE_TEXT
private static final Text
SERVER_EXPIRED_TOOLTIP
SERVER_EXPIRED_TOOLTIP
field_26457
EXPIRED_TEXT
private static final Text
SERVER_EXPIRES_SOON_TOOLTIP
SERVER_EXPIRES_SOON_TOOLTIP
field_26458
EXPIRES_SOON_TEXT
private static final Text
SERVER_EXPIRES_IN_DAY_TOOLTIP
SERVER_EXPIRES_IN_DAY_TOOLTIP
field_26459
EXPIRES_IN_A_DAY_TEXT
private static final Text
SERVER_OPEN_TOOLTIP
SERVER_OPEN_TOOLTIP
field_26460
OPEN_TEXT
private static final Text
SERVER_CLOSED_TOOLTIP
SERVER_CLOSED_TOOLTIP
field_26461
CLOSED_TEXT
private static final Text
UNITIALIZED_WORLD_NARRATION
UNITIALIZED_WORLD_NARRATION
field_33776
UNINITIALIZED_BUTTON_NARRATION
private static final Text
NO_REALMS_TEXT
NO_REALMS_TEXT
field_45198
NO_REALMS_TEXT
private static final Text
NO_PENDING_INVITES
NO_PENDING_INVITES
field_45199
NO_PENDING_TOOLTIP
private static final Text
PENDING_INVITES
PENDING_INVITES
field_45200
PENDING_TOOLTIP
private static final Text
INCOMPATIBLE_POPUP_TITLE
INCOMPATIBLE_POPUP_TITLE
field_51815
INCOMPATIBLE_POPUP_TITLE
private static final Text
INCOMPATIBLE_RELEASE_TYPE_POPUP_MESSAGE
INCOMPATIBLE_RELEASE_TYPE_POPUP_MESSAGE
field_51816
INCOMPATIBLE_RELEASE_TYPE_MESSAGE
private static final int
BUTTON_WIDTH
BUTTON_WIDTH
field_42862
field_42862
private static final int
BUTTON_COLUMNS
BUTTON_COLUMNS
field_45209
field_45209
private static final int
BUTTON_SPACING
BUTTON_SPACING
field_45210
field_45210
private static final int
CONTENT_WIDTH
CONTENT_WIDTH
field_45211
field_45211
private static final int
LOGO_PADDING
LOGO_PADDING
field_44513
field_44513
private static final int
HEADER_HEIGHT
HEADER_HEIGHT
field_44514
field_44514
private static final int
FOOTER_PADDING
FOOTER_PADDING
field_45212
field_45212
private static final int
NEW_REALM_SPRITE_WIDTH
NEW_REALM_SPRITE_WIDTH
field_46670
field_46670
private static final int
NEW_REALM_SPRITE_HEIGHT
NEW_REALM_SPRITE_HEIGHT
field_46671
field_46671
private static final boolean
SNAPSHOT
SNAPSHOT
field_46672
GAME_ON_SNAPSHOT
private static boolean
snapshotToggle
snapshotToggle
field_46673
showingSnapshotRealms
private final CompletableFuture<RealmsAvailability$Info>
availability
availability
field_45213
availabilityInfo
private PeriodicRunnerFactory$RunnersManager
dataSubscription
dataSubscription
field_45214
periodicRunnersManager
private final Set<UUID>
handledSeenNotifications
handledSeenNotifications
field_42996
seenNotifications
private static boolean
regionsPinged
regionsPinged
field_19464
regionsPinged
private final com.google.common.util.concurrent.RateLimiter
inviteNarrationLimiter
inviteNarrationLimiter
field_19477
rateLimiter
private final Screen
lastScreen
lastScreen
field_19482
parent
private ButtonWidget
playButton
playButton
field_45215
playButton
private ButtonWidget
backButton
backButton
field_19486
backButton
private ButtonWidget
renewButton
renewButton
field_19487
renewButton
private ButtonWidget
configureButton
configureButton
field_19488
configureButton
private ButtonWidget
leaveButton
leaveButton
field_19489
leaveButton
private RealmsMainScreen$RealmSelectionList
realmSelectionList
realmSelectionList
field_19483
realmSelectionList
private RealmsServerFilterer
serverList
serverList
field_39681
serverFilterer
private List<RealmsServer>
availableSnapshotServers
availableSnapshotServers
field_46669
availableSnapshotServers
private RealmsServerPlayerList
onlinePlayersPerRealm
onlinePlayersPerRealm
field_52116
onlinePlayers
private volatile boolean
trialsAvailable
trialsAvailable
field_19500
trialAvailable
private volatile String
newsLink
newsLink
field_45203
newsLink
private final List<RealmsNotification>
notifications
notifications
field_42997
notifications
private ButtonWidget
addRealmButton
addRealmButton
field_45204
purchaseButton
private RealmsMainScreen$NotificationButtonWidget
pendingInvitesButton
pendingInvitesButton
field_45205
inviteButton
private RealmsMainScreen$NotificationButtonWidget
newsButton
newsButton
field_45206
newsButton
private RealmsMainScreen$LoadStatus
activeLayoutState
activeLayoutState
field_45207
loadStatus
private ThreePartsLayoutWidget
layout
layout
field_45208
layout

Constructor summary

ModifierConstructor
public (Screen parent)

Method summary

Modifier and TypeMethod
public void
init()
init()
method_25426()
init()
public static boolean
isSnapshot()
isSnapshot()
method_54330()
isSnapshotRealmsEligible()
protected void
repositionElements()
repositionElements()
method_48640()
refreshWidgetPositions()
public void
onClose()
onClose()
method_25419()
close()
private void
updateLayout()
updateLayout()
method_54320()
updateLoadStatus()
private void
updateLayout(RealmsMainScreen$LayoutState state)
updateLayout(RealmsMainScreen$LayoutState state)
method_52635(class_4325$class_8650 arg0)
onLoadStatusChange(RealmsMainScreen$LoadStatus loadStatus)
private ThreePartsLayoutWidget
createLayout(RealmsMainScreen$LayoutState state)
createLayout(RealmsMainScreen$LayoutState state)
method_52641(class_4325$class_8650 arg0)
makeLayoutFor(RealmsMainScreen$LoadStatus loadStatus)
private LayoutWidget
createHeader()
createHeader()
method_52630()
makeHeader()
private LayoutWidget
createFooter(RealmsMainScreen$LayoutState state)
createFooter(RealmsMainScreen$LayoutState state)
method_52644(class_4325$class_8650 arg0)
makeInnerLayout(RealmsMainScreen$LoadStatus loadStatus)
private DirectionalLayoutWidget
createNoRealmsContent()
createNoRealmsContent()
method_52631()
makeNoRealmsLayout()
private void
updateButtonStates()
updateButtonStates()
method_52632()
refreshButtons()
private boolean
shouldRenewButtonBeActive(RealmsServer server)
shouldRenewButtonBeActive(RealmsServer server)
method_20884(class_4877 arg0)
shouldRenewButtonBeActive(RealmsServer server)
private boolean
shouldConfigureButtonBeActive(RealmsServer server)
shouldConfigureButtonBeActive(RealmsServer server)
method_49285(class_4877 arg0)
shouldConfigureButtonBeActive(RealmsServer server)
private boolean
shouldLeaveButtonBeActive(RealmsServer server)
shouldLeaveButtonBeActive(RealmsServer server)
method_49288(class_4877 arg0)
shouldLeaveButtonBeActive(RealmsServer server)
public void
tick()
tick()
method_25393()
tick()
public static void
refreshPendingInvites()
refreshPendingInvites()
method_53792()
resetPendingInvitesCount()
public static void
refreshServerList()
refreshServerList()
method_53793()
resetServerList()
private void
debugRefreshDataFetchers()
debugRefreshDataFetchers()
method_54324()
resetPeriodicCheckers()
private PeriodicRunnerFactory$RunnersManager
initDataFetcher(RealmsDataFetcher dataSource)
initDataFetcher(RealmsDataFetcher dataSource)
method_44611(class_7578 arg0)
createPeriodicRunnersManager(RealmsPeriodicCheckers periodicCheckers)
private void
markNotificationsAsSeen(Collection<RealmsNotification> notifications)
markNotificationsAsSeen(Collection<RealmsNotification> notifications)
method_54104(Collection<class_8204> arg0)
markAsSeen(Collection<RealmsNotification> notifications)
private static <T> void
callRealmsClient(RealmsMainScreen$RealmsCall<T> supplier, Consumer<T> callback)
callRealmsClient(RealmsMainScreen$RealmsCall<T> supplier, Consumer<T> callback)
method_49553(class_4325$class_8203<T> arg0, Consumer<T> arg1)
request(RealmsMainScreen$Request<T> request, Consumer<T> resultConsumer)
private void
refreshListAndLayout()
refreshListAndLayout()
method_49550()
refresh()
private void
pingRegions()
pingRegions()
method_20922()
pingRegions()
private List<Long>
getOwnedNonExpiredRealmIds()
getOwnedNonExpiredRealmIds()
method_20924()
getOwnedNonExpiredWorldIds()
private void
onRenew(RealmsServer server)
onRenew(RealmsServer server)
method_20928(class_4877 arg0)
onRenew(RealmsServer realmsServer)
private void
configureClicked(RealmsServer selectedServer)
configureClicked(RealmsServer selectedServer)
method_20903(class_4877 arg0)
configureClicked(RealmsServer serverData)
private void
leaveClicked(RealmsServer selectedServer)
leaveClicked(RealmsServer selectedServer)
method_20906(class_4877 arg0)
leaveClicked(RealmsServer selectedServer)
private RealmsServer
getSelectedServer()
getSelectedServer()
method_38503()
getSelectedServer()
private void
leaveServer(RealmsServer server)
leaveServer(RealmsServer server)
method_24991(class_4877 arg0)
leaveServer(RealmsServer server)
private void
dismissNotification(UUID uuid)
dismissNotification(UUID uuid)
method_49557(UUID arg0)
dismissNotification(UUID notification)
public void
resetScreen()
resetScreen()
method_38505()
removeSelection()
public Text
getNarrationMessage()
getNarrationMessage()
method_25435()
getNarratedTitle()
public void
extractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a)
extractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
private void
openTrialAvailablePopup()
openTrialAvailablePopup()
method_53791()
showBuyRealmsScreen()
public static void
play(RealmsServer server, Screen cancelScreen)
play(RealmsServer server, Screen cancelScreen)
method_20853(class_4877 arg0, class_437 arg1)
play(RealmsServer serverData, Screen parent)
public static void
play(RealmsServer server, Screen cancelScreen, boolean skipCompatibility)
play(RealmsServer server, Screen cancelScreen, boolean skipCompatibility)
method_54327(class_4877 arg0, class_437 arg1, boolean arg2)
play(RealmsServer server, Screen parent, boolean needsPreparation)
private static void
confirmToPlay(RealmsServer server, Screen lastScreen, Component title, Component message, Component confirmButton)
confirmToPlay(RealmsServer server, Screen lastScreen, Component title, Component message, Component confirmButton)
method_54326(class_4877 arg0, class_437 arg1, class_2561 arg2, class_2561 arg3, class_2561 arg4)
showCompatibilityScreen(RealmsServer server, Screen parent, Text title, Text description, Text confirmText)
private static void
upgradeRealmAndPlay(RealmsServer server, Screen cancelScreen)
upgradeRealmAndPlay(RealmsServer server, Screen cancelScreen)
method_60861(class_4877 arg0, class_437 arg1)
showNeedsUpgradeScreen(RealmsServer serverData, Screen parent)
public static Text
getVersionComponent(String version, boolean isCompatible)
getVersionComponent(String version, boolean isCompatible)
method_54562(String arg0, boolean arg1)
getVersionText(String version, boolean compatible)
public static Text
getVersionComponent(String version, int color)
getVersionComponent(String version, int color)
method_54561(String arg0, int arg1)
getVersionText(String version, int color)
public static Text
getGameModeComponent(int gameMode, boolean hardcore)
getGameModeComponent(int gameMode, boolean hardcore)
method_64834(int arg0, boolean arg1)
getGameModeText(int id, boolean hardcore)
private static boolean
isSelfOwnedServer(RealmsServer serverData)
isSelfOwnedServer(RealmsServer serverData)
method_20909(class_4877 arg0)
isSelfOwnedServer(RealmsServer server)
private boolean
isSelfOwnedNonExpiredServer(RealmsServer serverData)
isSelfOwnedNonExpiredServer(RealmsServer serverData)
method_25001(class_4877 arg0)
isOwnedNotExpired(RealmsServer serverData)
private void
extractEnvironment(GuiGraphicsExtractor graphics, String text, int color)
extractEnvironment(GuiGraphicsExtractor graphics, String text, int color)
method_52637(class_332 arg0, String arg1, int arg2)
drawEnvironmentText(DrawContext context, String text, int color)