Package com.mojang.realmsclient.gui
Class RealmsDataFetcher
java.lang.Object
com.mojang.realmsclient.gui.RealmsDataFetcher
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<RealmsDataFetcher.Task,
Boolean> private boolean
private RealmsServerPlayerLists
private ScheduledFuture<?>
private final RepeatableTask
private static final org.slf4j.Logger
private final Minecraft
private String
private final RealmsPersistence
private ScheduledFuture<?>
private int
private final RepeatableTask
private final RealmsClient
private final Set<RealmsServer>
private final ScheduledExecutorService
private ScheduledFuture<?>
private final RepeatableTask
private List<RealmsServer>
private boolean
private final RepeatableTask
private boolean
private ScheduledFuture<?>
private ScheduledFuture<?>
private final RepeatableTask
-
Constructor Summary
ModifierConstructorDescriptionRealmsDataFetcher
(Minecraft p_167333_, RealmsClient p_167334_) protected
RealmsDataFetcher
(Minecraft p_167336_, RealmsClient p_167337_, RealmsPersistence p_167338_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
int
boolean
void
init()
void
private boolean
isActive()
boolean
isFetchedSinceLastTry
(RealmsDataFetcher.Task p_87821_) boolean
boolean
void
newsLink()
removeItem
(RealmsServer p_210673_) private void
private void
setServers
(List<RealmsServer> p_87840_) void
stop()
private void
private void
private void
private void
private void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
minecraft
-
realmsClient
-
scheduler
-
stopped
private volatile boolean stopped -
serverListUpdateTask
-
liveStatsTask
-
pendingInviteUpdateTask
-
trialAvailabilityTask
-
unreadNewsTask
-
newsLocalStorage
-
removedServers
-
servers
-
livestats
-
pendingInvitesCount
private int pendingInvitesCount -
trialAvailable
private boolean trialAvailable -
hasUnreadNews
private boolean hasUnreadNews -
newsLink
-
serverListScheduledFuture
-
pendingInviteScheduledFuture
-
trialAvailableScheduledFuture
-
liveStatsScheduledFuture
-
unreadNewsScheduledFuture
-
fetchStatus
-
-
Constructor Details
-
RealmsDataFetcher
-
RealmsDataFetcher
protected RealmsDataFetcher(Minecraft p_167336_, RealmsClient p_167337_, RealmsPersistence p_167338_)
-
-
Method Details
-
isStopped
public boolean isStopped() -
init
public void init() -
initWithSpecificTaskList
public void initWithSpecificTaskList() -
isFetchedSinceLastTry
-
markClean
public void markClean() -
forceUpdate
public void forceUpdate() -
getServers
-
getPendingInvitesCount
public int getPendingInvitesCount() -
isTrialAvailable
public boolean isTrialAvailable() -
getLivestats
-
hasUnreadNews
public boolean hasUnreadNews() -
newsLink
-
stop
public void stop() -
scheduleTasks
private void scheduleTasks() -
cancelTasks
private void cancelTasks() -
setServers
-
removeItem
-
isActive
private boolean isActive() -
updateServersList
private void updateServersList() -
updatePendingInvites
private void updatePendingInvites() -
updateTrialAvailable
private void updateTrialAvailable() -
updateLiveStats
private void updateLiveStats() -
updateUnreadNews
private void updateUnreadNews() -
fetchAndUpdateNewsStorage
-