net.minecraft.client.friend

public final class FriendListManager

net.minecraft.client.gui.screens.social.RemoteFriendListUpdateHandler
net.minecraft.class_1_1004
net.minecraft.client.friend.FriendListManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_1_6871
LOGGER
private static final long
FOREGROUND_INTERVAL_NANOS
field_1_6870
UPDATE_PERIOD_IN_FRIEND_SCREEN
private static final long
BACKGROUND_INTERVAL_MULTIPLIER
field_1_7155
field_1_7155
private static final long
POLL_INTERVAL_SECONDS
field_1_6872
TICK_PERIOD
private final com.mojang.authlib.yggdrasil.FriendsService
friendsService
field_1_6874
friendsService
private final MinecraftClient
minecraft
field_1_6880
client
private final ScheduledExecutorService
scheduler
field_1_6882
friendsListThreadExecutor
private final AtomicBoolean
updateInProgress
field_1_6884
updating
private final AtomicBoolean
enabled
field_1_6873
enabled
private final Set<Runnable>
updateListeners
field_1_6885
updateListeners
private volatile long
lastUpdateNanos
field_1_6878
lastUpdatedAt
private volatile com.mojang.authlib.yggdrasil.response.FriendData
latestFriendData
field_1_6879
friendData
private volatile FriendListManager$Status
state
field_1_6883
lastStatus
private volatile Set<com.mojang.authlib.yggdrasil.response.FriendDto>
knownFriends
field_1_6875
friends
private volatile Set<com.mojang.authlib.yggdrasil.response.FriendDto>
knownIncoming
field_1_6876
incomingRequests
private volatile Set<com.mojang.authlib.yggdrasil.response.FriendDto>
knownOutgoing
field_1_6877
outgoingRequests
private ScheduledFuture<?>
scheduledTick
field_1_6881
tickTask

Constructor summary

ModifierConstructor
public (com.mojang.authlib.yggdrasil.FriendsService friendsService, MinecraftClient client)

Method summary

Modifier and TypeMethod
private void
runBackgroundTick()
method_1_6108()
tick()
public com.mojang.authlib.yggdrasil.response.FriendData
getLatestFriendData()
method_1_6096()
getFriendData()
public FriendListManager$Status
getState()
method_1_6097()
getStatus()
public void
addUpdateListener(Runnable listener)
method_1_6091(Runnable arg0)
addUpdateListener(Runnable listener)
public void
removeUpdateListener(Runnable listener)
method_1_6107(Runnable arg0)
removeUpdateListener(Runnable listener)
private long
getUpdateIntervalNanos()
method_1_6098()
getUpdatePeriod()
void
runUpdateFriendDataInternal()
method_1_6109()
update()
private static FriendListManager$Status
mapResultCodeToState(com.mojang.authlib.yggdrasil.FriendsService$ResultCode resultCode)
method_1_6105(com.mojang.authlib.yggdrasil.FriendsService$ResultCode arg0)
convertYggdrasilResultCode(com.mojang.authlib.yggdrasil.FriendsService$ResultCode resultCode)
private void
notifyListeners()
method_1_6106()
notifyUpdateListeners()
private boolean
detectChangesAndShowToast(com.mojang.authlib.yggdrasil.response.FriendData friendData, RemoteFriendListUpdateHandler$State previousState)
method_1_6093(com.mojang.authlib.yggdrasil.response.FriendData arg0, class_1_1004$class_1_1006 arg1)
updateFromFriendData(com.mojang.authlib.yggdrasil.response.FriendData friendData, FriendListManager$Status status)
private boolean
isInGameAndToastsDisabled()
method_1_6099()
shouldSuppressNotifications()
private void
emitToastWithSkin(UUID playerId, String playerName, FriendToast$SkinToastEmitter emitter)
method_1_6094(UUID arg0, String arg1, class_1_945$class_1_1005 arg2)
onFriendStatusChanged(UUID arg0, String arg1, FriendsToast$FriendStatusChangeNotifier arg2)
public CompletableFuture<Void>
forceUpdate()
method_1_6095()
updateAsync()
public synchronized void
start()
method_1_6110()
onFriendsEnabled()
public synchronized void
stop()
method_1_6111()
onFriendsDisabled()
public synchronized void
close()
method_1_6092()
shutdown()
private void
lambda$forceUpdate$0(CompletableFuture arg0)
method_1_6102(CompletableFuture arg0)
method_1_6102(CompletableFuture arg0)
private void
lambda$emitToastWithSkin$0(FriendToast$SkinToastEmitter arg0, String arg1, UUID arg2)
method_1_6328(class_1_945$class_1_1005 arg0, String arg1, UUID arg2)
method_1_6328(FriendsToast$FriendStatusChangeNotifier arg0, String arg1, UUID arg2)
private void
lambda$detectChangesAndShowToast$0(com.mojang.authlib.yggdrasil.response.FriendDto arg0)
method_1_6100(com.mojang.authlib.yggdrasil.response.FriendDto arg0)
method_1_6100(com.mojang.authlib.yggdrasil.response.FriendDto arg0)
private void
lambda$notifyListeners$0()
method_1_6104()
method_1_6104()
private static Thread
lambda$new$0(Runnable arg0)
method_1_6103(Runnable arg0)
method_1_6103(Runnable runnable)