com.mojang.realmsclient

public class RealmsMainScreen

extends RealmsScreen

All mapped superinterfaces:

ContainerEventHandler, GuiEventListener, TabOrderedElement, Renderable

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

Constructor summary

ModifierConstructor
public (Screen parent)

Method summary

Modifier and TypeMethod
public void
aN_()
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_()
private void
D()
updateLayout()
method_54320()
updateLoadStatus()
m_304653_()
private void
a(eqm$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(eqm$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
E()
createHeader()
method_52630()
makeHeader()
m_292856_()
private Layout
c(eqm$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
H()
createNoRealmsContent()
method_52631()
makeNoRealmsLayout()
m_292821_()
void
I()
updateButtonStates()
method_52632()
refreshButtons()
m_86393_()
boolean
a(eri arg0)
shouldPlayButtonBeActive(RealmsServer arg0)
method_20874(class_4877 arg0)
shouldPlayButtonBeActive(RealmsServer server)
m_86562_(C_3244_ arg0)
private boolean
b(eri arg0)
shouldRenewButtonBeActive(RealmsServer arg0)
method_20884(class_4877 arg0)
shouldRenewButtonBeActive(RealmsServer server)
m_86594_(C_3244_ arg0)
private boolean
c(eri arg0)
shouldConfigureButtonBeActive(RealmsServer arg0)
method_49285(class_4877 arg0)
shouldConfigureButtonBeActive(RealmsServer server)
m_86619_(C_3244_ arg0)
private boolean
d(eri arg0)
shouldLeaveButtonBeActive(RealmsServer arg0)
method_49288(class_4877 arg0)
shouldLeaveButtonBeActive(RealmsServer server)
m_86644_(C_3244_ arg0)
public void
d()
tick()
method_25393()
tick()
m_86600_()
public static void
e()
refreshPendingInvites()
method_53792()
resetPendingInvitesCount()
m_294569_()
public static void
f()
refreshServerList()
method_53793()
resetServerList()
m_294350_()
private void
J()
debugRefreshDataFetchers()
method_54324()
resetPeriodicCheckers()
m_305162_()
private DataFetcher$Subscription
a(esh arg0)
initDataFetcher(RealmsDataFetcher arg0)
method_44611(class_7578 arg0)
createPeriodicRunnersManager(RealmsPeriodicCheckers periodicCheckers)
m_86354_(C_3271_ arg0)
private void
a(Collection<erh> 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(eqm$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
K()
refreshListAndLayout()
method_49550()
refresh()
m_274604_()
private boolean
a(erh arg0)
addListEntriesForNotification(RealmsNotification arg0)
method_49551(class_8204 arg0)
addNotificationEntry(RealmsNotification notification)
m_307520_(C_273792_ arg0)
private void
L()
pingRegions()
method_20922()
pingRegions()
m_86327_()
private List<Long>
M()
getOwnedNonExpiredWorldIds()
method_20924()
getOwnedNonExpiredWorldIds()
m_86330_()
private void
e(eri arg0)
onRenew(RealmsServer arg0)
method_20928(class_4877 arg0)
onRenew(RealmsServer realmsServer)
m_193499_(C_3244_ arg0)
private void
f(eri arg0)
configureClicked(RealmsServer arg0)
method_20903(class_4877 arg0)
configureClicked(RealmsServer serverData)
m_86656_(C_3244_ arg0)
private void
g(eri arg0)
leaveClicked(RealmsServer arg0)
method_20906(class_4877 arg0)
leaveClicked(RealmsServer selectedServer)
m_86669_(C_3244_ arg0)
private RealmsServer
N()
getSelectedServer()
method_38503()
findServer()
m_193481_()
private void
a(boolean arg0, eri 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
g()
resetScreen()
method_38505()
removeSelection()
m_193498_()
public Component
h()
getNarrationMessage()
method_25435()
getNarratedTitle()
m_142562_()
public void
a(ewu 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
O()
openTrialAvailablePopup()
method_53791()
showBuyRealmsScreen()
m_294891_()
public static void
a(eri arg0, fdb 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(eri arg0, fdb 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(eri arg0, fdb arg1, vf arg2, vf arg3, vf 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(eri arg0)
isSelfOwnedServer(RealmsServer arg0)
method_20909(class_4877 arg0)
isSelfOwnedServer(RealmsServer server)
m_86683_(C_3244_ arg0)
private boolean
i(eri arg0)
isSelfOwnedNonExpiredServer(RealmsServer arg0)
method_25001(class_4877 arg0)
isOwnedNotExpired(RealmsServer serverData)
m_86688_(C_3244_ arg0)
private void
a(ewu 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)