Class RealmsDataFetcher

java.lang.Object
com.mojang.realmsclient.gui.RealmsDataFetcher

public class RealmsDataFetcher extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • minecraft

      private final Minecraft minecraft
    • realmsClient

      private final RealmsClient realmsClient
    • scheduler

      private final ScheduledExecutorService scheduler
    • stopped

      private volatile boolean stopped
    • serverListUpdateTask

      private final RepeatableTask serverListUpdateTask
    • liveStatsTask

      private final RepeatableTask liveStatsTask
    • pendingInviteUpdateTask

      private final RepeatableTask pendingInviteUpdateTask
    • trialAvailabilityTask

      private final RepeatableTask trialAvailabilityTask
    • unreadNewsTask

      private final RepeatableTask unreadNewsTask
    • newsLocalStorage

      private final RealmsPersistence newsLocalStorage
    • removedServers

      private final Set<RealmsServer> removedServers
    • servers

      private List<RealmsServer> servers
    • livestats

      private RealmsServerPlayerLists livestats
    • pendingInvitesCount

      private int pendingInvitesCount
    • trialAvailable

      private boolean trialAvailable
    • hasUnreadNews

      private boolean hasUnreadNews
    • serverListScheduledFuture

      private ScheduledFuture<?> serverListScheduledFuture
    • pendingInviteScheduledFuture

      private ScheduledFuture<?> pendingInviteScheduledFuture
    • trialAvailableScheduledFuture

      private ScheduledFuture<?> trialAvailableScheduledFuture
    • liveStatsScheduledFuture

      private ScheduledFuture<?> liveStatsScheduledFuture
    • unreadNewsScheduledFuture

      private ScheduledFuture<?> unreadNewsScheduledFuture
    • fetchStatus

      private final Map<RealmsDataFetcher.Task,Boolean> fetchStatus
  • Constructor Details

  • Method Details

    • isStopped

      public boolean isStopped()
    • init

      public void init()
    • initWithSpecificTaskList

      public void initWithSpecificTaskList()
    • isFetchedSinceLastTry

      public boolean isFetchedSinceLastTry(RealmsDataFetcher.Task p_87821_)
    • markClean

      public void markClean()
    • forceUpdate

      public void forceUpdate()
    • getServers

      public List<RealmsServer> getServers()
    • getPendingInvitesCount

      public int getPendingInvitesCount()
    • isTrialAvailable

      public boolean isTrialAvailable()
    • getLivestats

      public RealmsServerPlayerLists getLivestats()
    • hasUnreadNews

      public boolean hasUnreadNews()
    • newsLink

      public String newsLink()
    • stop

      public void stop()
    • scheduleTasks

      private void scheduleTasks()
    • cancelTasks

      private void cancelTasks()
    • setServers

      private void setServers(List<RealmsServer> p_87840_)
    • removeItem

      public List<RealmsServer> removeItem(RealmsServer p_210673_)
    • 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

      private RealmsPersistence.RealmsPersistenceData fetchAndUpdateNewsStorage()