com.mojang.realmsclient

public class RealmsMainScreen

extends RealmsScreen

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable

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

Field summary

Modifier and TypeField
static final ResourceLocation
a
INFO_SPRITE
field_45201
INFO_ICON_TEXTURE
f_291684_
static final ResourceLocation
b
NEW_REALM_SPRITE
field_45216
NEW_REALM_ICON_TEXTURE
f_290854_
static final ResourceLocation
c
EXPIRED_SPRITE
field_45217
EXPIRED_STATUS_TEXTURE
f_290924_
static final ResourceLocation
B
EXPIRES_SOON_SPRITE
field_45218
EXPIRES_SOON_STATUS_TEXTURE
f_291137_
static final ResourceLocation
C
OPEN_SPRITE
field_45219
OPEN_STATUS_TEXTURE
f_290678_
static final ResourceLocation
D
CLOSED_SPRITE
field_45191
CLOSED_STATUS_TEXTURE
f_290414_
private static final ResourceLocation
E
INVITE_SPRITE
field_45192
INVITE_ICON_TEXTURE
f_290673_
private static final ResourceLocation
F
NEWS_SPRITE
field_45193
NEWS_ICON_TEXTURE
f_291632_
static final org.slf4j.Logger
G
LOGGER
field_19475
LOGGER
f_86257_
private static final ResourceLocation
H
LOGO_LOCATION
field_45194
REALMS_TITLE_TEXTURE
f_86308_
private static final ResourceLocation
I
NO_REALMS_LOCATION
field_45195
NO_REALMS_TEXTURE
f_291111_
private static final Component
J
TITLE
field_45196
MENU_TEXT
f_290532_
private static final Component
K
LOADING_TEXT
field_45197
LOADING_TEXT
f_291739_
static final Component
L
SERVER_UNITIALIZED_TEXT
field_26450
UNINITIALIZED_TEXT
f_86238_
static final Component
M
SUBSCRIPTION_EXPIRED_TEXT
field_26451
EXPIRED_LIST_TEXT
f_86239_
private static final Component
N
SUBSCRIPTION_RENEW_TEXT
field_26452
EXPIRED_RENEW_TEXT
f_86240_
static final Component
O
TRIAL_EXPIRED_TEXT
field_26453
EXPIRED_TRIAL_TEXT
f_86241_
private static final Component
P
PLAY_TEXT
field_42859
PLAY_TEXT
f_271303_
private static final Component
Q
LEAVE_SERVER_TEXT
field_42860
LEAVE_TEXT
f_271231_
private static final Component
R
CONFIGURE_SERVER_TEXT
field_42861
CONFIGURE_TEXT
f_271441_
static final Component
S
SERVER_EXPIRED_TOOLTIP
field_26457
EXPIRED_TEXT
f_86245_
static final Component
T
SERVER_EXPIRES_SOON_TOOLTIP
field_26458
EXPIRES_SOON_TEXT
f_86246_
static final Component
U
SERVER_EXPIRES_IN_DAY_TOOLTIP
field_26459
EXPIRES_IN_A_DAY_TEXT
f_86247_
static final Component
V
SERVER_OPEN_TOOLTIP
field_26460
OPEN_TEXT
f_86248_
static final Component
W
SERVER_CLOSED_TOOLTIP
field_26461
CLOSED_TEXT
f_86249_
static final Component
X
UNITIALIZED_WORLD_NARRATION
field_33776
UNINITIALIZED_BUTTON_NARRATION
f_167175_
private static final Component
Y
NO_REALMS_TEXT
field_45198
NO_REALMS_TEXT
f_290707_
private static final Component
Z
NO_PENDING_INVITES
field_45199
NO_PENDING_TOOLTIP
f_291641_
private static final Component
aa
PENDING_INVITES
field_45200
PENDING_TOOLTIP
f_290929_
private static final int
ab
BUTTON_WIDTH
field_42862
field_42862
f_271378_
private static final int
ac
BUTTON_COLUMNS
field_45209
field_45209
f_290754_
private static final int
ad
BUTTON_SPACING
field_45210
field_45210
f_291666_
private static final int
ae
CONTENT_WIDTH
field_45211
field_45211
f_290880_
private static final int
af
LOGO_WIDTH
field_44509
field_44509
f_278420_
private static final int
ag
LOGO_HEIGHT
field_44510
field_44510
f_278497_
private static final int
ah
LOGO_TEXTURE_WIDTH
field_44511
field_44511
f_278430_
private static final int
ai
LOGO_TEXTURE_HEIGHT
field_44512
field_44512
f_278488_
private static final int
aj
LOGO_PADDING
field_44513
field_44513
f_278451_
private static final int
ak
HEADER_HEIGHT
field_44514
field_44514
f_278457_
private static final int
al
FOOTER_PADDING
field_45212
field_45212
f_290986_
private static final int
am
NEW_REALM_SPRITE_WIDTH
field_46670
field_46670
f_303294_
private static final int
an
NEW_REALM_SPRITE_HEIGHT
field_46671
field_46671
f_303305_
private static final int
ao
ENTRY_WIDTH
field_46215
field_46215
f_301848_
private static final int
ap
ITEM_HEIGHT
field_46216
field_46216
f_301849_
private static final boolean
aq
SNAPSHOT
field_46672
gameOnSnapshot
f_302464_
private static boolean
ar
snapshotToggle
field_46673
showingSnapshotRealms
f_303830_
private final CompletableFuture<RealmsAvailability$Result>
as
availability
field_45213
availabilityInfo
f_290846_
private DataFetcher$Subscription
at
dataSubscription
field_45214
periodicRunnersManager
f_238705_
private final Set<UUID>
au
handledSeenNotifications
field_42996
seenNotifications
f_273876_
private static boolean
av
regionsPinged
field_19464
regionsPinged
f_86279_
private final com.google.common.util.concurrent.RateLimiter
aw
inviteNarrationLimiter
field_19477
rateLimiter
f_86280_
private final Screen
ax
lastScreen
field_19482
parent
f_86282_
private Button
ay
playButton
field_45215
playButton
f_86285_
private Button
az
backButton
field_19486
backButton
f_86286_
private Button
aA
renewButton
field_19487
renewButton
f_86287_
private Button
aB
configureButton
field_19488
configureButton
f_86288_
private Button
aC
leaveButton
field_19489
leaveButton
f_86289_
RealmsMainScreen$RealmSelectionList
aD
realmSelectionList
field_19483
realmSelectionList
f_86283_
private RealmsServerList
aE
serverList
field_39681
serverFilterer
f_238533_
private List<RealmsServer>
aF
availableSnapshotServers
field_46669
availableSnapshotServers
f_302288_
private volatile boolean
aG
trialsAvailable
field_19500
trialAvailable
f_86297_
private volatile String
aH
newsLink
field_45203
newsLink
f_86259_
long
aI
lastClickTime
field_37267
lastPlayButtonClickTime
f_212359_
private final List<RealmsNotification>
aJ
notifications
field_42997
notifications
f_273903_
private Button
aK
addRealmButton
field_45204
purchaseButton
f_291106_
private RealmsMainScreen$NotificationButton
aL
pendingInvitesButton
field_45205
inviteButton
f_86269_
private RealmsMainScreen$NotificationButton
aM
newsButton
field_45206
newsButton
f_86270_
private RealmsMainScreen$LayoutState
aN
activeLayoutState
field_45207
loadStatus
f_291447_
private HeaderAndFooterLayout
aO
layout
field_45208
layout
f_290558_

Constructor summary

ModifierConstructor
public (Screen parent)

Method summary

Modifier and TypeMethod
public void
aM_()
init()
method_25426()
init()
m_7856_()
public static boolean
b()
isSnapshot()
method_54330()
isSnapshotRealmsEligible()
m_307170_()
protected void
c()
repositionElements()
method_48640()
initTabNavigation()
m_267719_()
public void
d()
onClose()
method_25419()
close()
m_7379_()
private void
E()
updateLayout()
method_54320()
updateLoadStatus()
m_304653_()
private void
a(fal$f arg0)
updateLayout(RealmsMainScreen$LayoutState arg0)
method_52635(class_4325$class_8650 arg0)
onLoadStatusChange(RealmsMainScreen$LoadStatus loadStatus)
m_293990_(C_3197_$C_290240_ arg0)
private HeaderAndFooterLayout
b(fal$f arg0)
createLayout(RealmsMainScreen$LayoutState arg0)
method_52641(class_4325$class_8650 arg0)
makeLayoutFor(RealmsMainScreen$LoadStatus loadStatus)
m_293610_(C_3197_$C_290240_ arg0)
private Layout
F()
createHeader()
method_52630()
makeHeader()
m_292856_()
private Layout
c(fal$f arg0)
createFooter(RealmsMainScreen$LayoutState arg0)
method_52644(class_4325$class_8650 arg0)
makeInnerLayout(RealmsMainScreen$LoadStatus loadStatus)
m_294892_(C_3197_$C_290240_ arg0)
private LinearLayout
I()
createNoRealmsContent()
method_52631()
makeNoRealmsLayout()
m_292821_()
void
J()
updateButtonStates()
method_52632()
refreshButtons()
m_86393_()
boolean
a(fbh arg0)
shouldPlayButtonBeActive(RealmsServer arg0)
method_20874(class_4877 arg0)
shouldPlayButtonBeActive(RealmsServer server)
m_86562_(C_3244_ arg0)
private boolean
b(fbh arg0)
shouldRenewButtonBeActive(RealmsServer arg0)
method_20884(class_4877 arg0)
shouldRenewButtonBeActive(RealmsServer server)
m_86594_(C_3244_ arg0)
private boolean
c(fbh arg0)
shouldConfigureButtonBeActive(RealmsServer arg0)
method_49285(class_4877 arg0)
shouldConfigureButtonBeActive(RealmsServer server)
m_86619_(C_3244_ arg0)
private boolean
d(fbh arg0)
shouldLeaveButtonBeActive(RealmsServer arg0)
method_49288(class_4877 arg0)
shouldLeaveButtonBeActive(RealmsServer server)
m_86644_(C_3244_ arg0)
public void
e()
tick()
method_25393()
tick()
m_86600_()
public static void
f()
refreshPendingInvites()
method_53792()
resetPendingInvitesCount()
m_294569_()
public static void
g()
refreshServerList()
method_53793()
resetServerList()
m_294350_()
private void
K()
debugRefreshDataFetchers()
method_54324()
resetPeriodicCheckers()
m_305162_()
private DataFetcher$Subscription
a(fcg arg0)
initDataFetcher(RealmsDataFetcher arg0)
method_44611(class_7578 arg0)
createPeriodicRunnersManager(RealmsPeriodicCheckers periodicCheckers)
m_86354_(C_3271_ arg0)
private void
a(Collection<fbg> arg0)
markNotificationsAsSeen(Collection<RealmsNotification> arg0)
method_54104(Collection<class_8204> arg0)
markAsSeen(Collection<RealmsNotification> notifications)
m_305244_(Collection<C_273792_> arg0)
private static <T> void
a(fal$k<T> arg0, Consumer<T> arg1)
callRealmsClient(RealmsMainScreen$RealmsCall<T> arg0, Consumer<T> arg1)
method_49553(class_4325$class_8203<T> arg0, Consumer<T> arg1)
request(RealmsMainScreen$Request<T> request, Consumer<T> resultConsumer)
m_274332_(C_3197_$C_273795_<T> p_275561_, Consumer<T> p_275686_)
private void
L()
refreshListAndLayout()
method_49550()
refresh()
m_274604_()
private boolean
a(fbg arg0)
addListEntriesForNotification(RealmsNotification arg0)
method_49551(class_8204 arg0)
addNotificationEntry(RealmsNotification notification)
m_307520_(C_273792_ arg0)
private void
M()
pingRegions()
method_20922()
pingRegions()
m_86327_()
private List<Long>
N()
getOwnedNonExpiredRealmIds()
method_20924()
getOwnedNonExpiredWorldIds()
m_86330_()
private void
e(fbh arg0)
onRenew(RealmsServer arg0)
method_20928(class_4877 arg0)
onRenew(RealmsServer realmsServer)
m_193499_(C_3244_ arg0)
private void
f(fbh arg0)
configureClicked(RealmsServer arg0)
method_20903(class_4877 arg0)
configureClicked(RealmsServer serverData)
m_86656_(C_3244_ arg0)
private void
g(fbh arg0)
leaveClicked(RealmsServer arg0)
method_20906(class_4877 arg0)
leaveClicked(RealmsServer selectedServer)
m_86669_(C_3244_ arg0)
private RealmsServer
O()
getSelectedServer()
method_38503()
findServer()
m_193481_()
private void
a(boolean arg0, fbh arg1)
leaveServer(boolean arg0, RealmsServer arg1)
method_24991(boolean arg0, class_4877 arg1)
leaveServer(boolean confirmed, RealmsServer realmsServer)
m_193493_(boolean p_193495_, C_3244_ arg1)
void
a(UUID arg0)
dismissNotification(UUID arg0)
method_49557(UUID arg0)
dismissNotification(UUID notification)
m_274580_(UUID arg0)
public void
h()
resetScreen()
method_38505()
removeSelection()
m_193498_()
public Component
i()
getNarrationMessage()
method_25435()
getNarratedTitle()
m_142562_()
public void
a(fgt arg0, int arg1, int arg2, float arg3)
render(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
m_88315_(C_279497_ p_283347_, int p_282480_, int p_283485_, float arg3)
private void
P()
openTrialAvailablePopup()
method_53791()
showBuyRealmsScreen()
m_294891_()
public static void
a(fbh arg0, fnf arg1)
play(RealmsServer arg0, Screen arg1)
method_20853(class_4877 arg0, class_437 arg1)
play(RealmsServer serverData, Screen parent)
m_86515_(C_3244_ p_86516_, C_3583_ p_86517_)
public static void
a(fbh arg0, fnf arg1, boolean arg2)
play(RealmsServer arg0, Screen arg1, boolean arg2)
method_54327(class_4877 arg0, class_437 arg1, boolean arg2)
play(RealmsServer serverData, Screen parent, boolean needsPreparation)
m_307704_(C_3244_ p_312669_, C_3583_ p_310591_, boolean p_309776_)
private static void
a(fbh arg0, fnf arg1, xp arg2, xp arg3, xp arg4)
confirmToPlay(RealmsServer arg0, Screen arg1, Component arg2, Component arg3, Component arg4)
method_54326(class_4877 arg0, class_437 arg1, class_2561 arg2, class_2561 arg3, class_2561 arg4)
showCompatibilityScreen(RealmsServer serverData, Screen parent, Text title, Text description, Text confirmText)
m_306234_(C_3244_ p_311893_, C_3583_ p_310296_, C_4996_ p_309987_, C_4996_ p_309434_, C_4996_ p_311253_)
public static Component
a(String arg0, boolean arg1)
getVersionComponent(String arg0, boolean arg1)
method_54562(String arg0, boolean arg1)
getVersionText(String version, boolean compatible)
m_305395_(String p_312049_, boolean p_312280_)
public static Component
a(String arg0, int arg1)
getVersionComponent(String arg0, int arg1)
method_54561(String arg0, int arg1)
getVersionText(String version, int color)
m_305180_(String p_311695_, int p_311083_)
boolean
h(fbh arg0)
isSelfOwnedServer(RealmsServer arg0)
method_20909(class_4877 arg0)
isSelfOwnedServer(RealmsServer server)
m_86683_(C_3244_ arg0)
private boolean
i(fbh arg0)
isSelfOwnedNonExpiredServer(RealmsServer arg0)
method_25001(class_4877 arg0)
isOwnedNotExpired(RealmsServer serverData)
m_86688_(C_3244_ arg0)
private void
a(fgt arg0, String arg1, int arg2)
renderEnvironment(GuiGraphics arg0, String arg1, int arg2)
method_52637(class_332 arg0, String arg1, int arg2)
drawEnvironmentText(DrawContext context, String text, int color)
m_294361_(C_279497_ p_299597_, String p_300122_, int arg2)