net.minecraft.client.friend

public class SocialInteractionsManager

net.minecraft.client.gui.screens.social.PlayerSocialManager
net.minecraft.client.gui.screens.social.PlayerSocialManager
net.minecraft.class_5520
net.minecraft.client.friend.SocialInteractionsManager

Field summary

Modifier and TypeField
private static final Text
FRIEND_ACTION_FAILED_MESSAGE
FRIEND_ACTION_FAILED_MESSAGE
field_1_6755
FAILED_TEXT
private static final Text
FRIEND_ACTION_RATE_LIMITED_MESSAGE
FRIEND_ACTION_RATE_LIMITED_MESSAGE
field_1_6757
RATE_LIMITED_TEXT
private static final Text
FRIEND_ACTION_FORBIDDEN_MESSAGE
FRIEND_ACTION_FORBIDDEN_MESSAGE
field_1_6756
FORBIDDEN_TEXT
private static final Text
FRIEND_ACTION_UNKNOWN_PROFILE
FRIEND_ACTION_UNKNOWN_PROFILE
field_1_6759
USER_MAY_LACK_ACTIVE_PROFILE_TEXT
private static final Text
FRIEND_ACTION_UNAUTHORIZED
FRIEND_ACTION_UNAUTHORIZED
field_1_7152
field_1_7152
private static final Text
FRIEND_ACTION_UNAVAILABLE_MESSAGE
FRIEND_ACTION_UNAVAILABLE_MESSAGE
field_1_6758
UNAVAILABLE_TEXT
private final MinecraftClient
minecraft
minecraft
field_26865
client
private final Set<UUID>
hiddenPlayers
hiddenPlayers
field_26866
hiddenPlayers
private final com.mojang.authlib.minecraft.UserApiService
service
service
field_26912
userApiService
private final com.mojang.authlib.services.FriendsService
friendsService
friendsService
field_1_6762
friendsService
private final InvitationManager
presenceHandler
presenceHandler
field_1_6763
invitationManager
private final Map<String, UUID>
discoveredNamesToUUID
discoveredNamesToUUID
field_26927
playerNameByUuid
private boolean
onlineMode
onlineMode
field_35081
blockListLoaded
private CompletableFuture<?>
pendingBlockListRefresh
pendingBlockListRefresh
field_35082
blockListLoader
private final FriendListManager
remoteFriendListUpdateHandler
remoteFriendListUpdateHandler
field_1_6764
friendListManager
private boolean
friendListEnabled
friendListEnabled
field_1_6761
friendsEnabled
private boolean
allowFriendRequests
allowFriendRequests
field_1_6760
acceptsFriendInvites

Constructor summary

ModifierConstructor
public (MinecraftClient client, com.mojang.authlib.minecraft.UserApiService userApiService, com.mojang.authlib.services.FriendsService friendsService, FriendListManager friendListManager)

Method summary

Modifier and TypeMethod
public void
addFriendListUpdateListener(Runnable listener)
addFriendListUpdateListener(Runnable listener)
method_1_5931(Runnable arg0)
addUpdateListener(Runnable listener)
public void
removeFriendListUpdateListener(Runnable listener)
removeFriendListUpdateListener(Runnable listener)
method_1_5957(Runnable arg0)
removeUpdateListener(Runnable listener)
public List<SocialInteractionsManager$Player>
getFriends()
getFriends()
method_1_5934()
getFriends()
public List<SocialInteractionsManager$Player>
getIncomingRequests()
getIncomingRequests()
method_1_5935()
getIncomingRequests()
public List<SocialInteractionsManager$Player>
getOutgoingRequests()
getOutgoingRequests()
method_1_5936()
getOutgoingRequests()
public FriendListManager$Status
getFriendListState()
getFriendListState()
method_1_5933()
getStatus()
public void
hidePlayer(UUID id)
hidePlayer(UUID id)
method_31338(UUID arg0)
hidePlayer(UUID uuid)
public void
showPlayer(UUID id)
showPlayer(UUID id)
method_31339(UUID arg0)
showPlayer(UUID uuid)
public boolean
shouldHideMessageFrom(UUID id)
shouldHideMessageFrom(UUID id)
method_31391(UUID arg0)
isPlayerMuted(UUID uuid)
public boolean
isHidden(UUID id)
isHidden(UUID id)
method_31340(UUID arg0)
isPlayerHidden(UUID uuid)
public void
startOnlineMode()
startOnlineMode()
method_38935()
loadBlockList()
public void
stopOnlineMode()
stopOnlineMode()
method_38936()
unloadBlockList()
public boolean
isBlocked(UUID id)
isBlocked(UUID id)
method_31392(UUID arg0)
isPlayerBlocked(UUID uuid)
public Set<UUID>
getHiddenPlayers()
getHiddenPlayers()
method_31336()
getHiddenPlayers()
public UUID
getDiscoveredUUID(String name)
getDiscoveredUUID(String name)
method_31407(String arg0)
getUuid(String playerName)
public void
addPlayer(PlayerInfo info)
addPlayer(PlayerInfo info)
method_31337(class_640 arg0)
setPlayerOnline(PlayerListEntry player)
public CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
sendFriendRequest(String name)
sendFriendRequest(String name)
method_1_5960(String arg0)
sendFriendRequest(String username)
public void
removePlayer(UUID id)
removePlayer(UUID id)
method_31341(UUID arg0)
setPlayerOffline(UUID uuid)
public CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
removeFriend(UUID id)
removeFriend(UUID id)
method_1_5956(UUID arg0)
removeFriend(UUID uuid)
public CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
acceptIncomingFriendRequest(UUID id)
acceptIncomingFriendRequest(UUID id)
method_1_5930(UUID arg0)
acceptIncomingFriendRequest(UUID uuid)
public CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
declineIncomingFriendRequest(UUID id)
declineIncomingFriendRequest(UUID id)
method_1_5932(UUID arg0)
declineIncomingFriendRequest(UUID uuid)
public CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
revokeOutgoingFriendRequest(UUID id)
revokeOutgoingFriendRequest(UUID id)
method_1_5958(UUID arg0)
revokeOutgoingFriendRequest(UUID uuid)
public CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
updateFriendSettings(boolean friendsListEnabled, boolean allowInvites)
updateFriendSettings(boolean friendsListEnabled, boolean allowInvites)
method_1_5964(boolean arg0, boolean arg1)
updateFriendSettings(boolean enableFriendList, boolean acceptFriendInvites)
private CompletableFuture<com.mojang.authlib.services.FriendsService$ResultCode>
runAction(Supplier<com.mojang.authlib.services.FriendsService$ResultCode> action)
runAction(Supplier<com.mojang.authlib.services.FriendsService$ResultCode> action)
method_1_5959(Supplier<com.mojang.authlib.services.FriendsService$ResultCode> arg0)
sendAsyncRequest(Supplier<com.mojang.authlib.services.FriendsService$ResultCode> request)
private void
handleResult(com.mojang.authlib.services.FriendsService$ResultCode result)
handleResult(com.mojang.authlib.services.FriendsService$ResultCode result)
method_1_5938(com.mojang.authlib.services.FriendsService$ResultCode arg0)
reportResultCode(com.mojang.authlib.services.FriendsService$ResultCode arg0)
private void
showFailureToast(com.mojang.authlib.services.FriendsService$ResultCode resultCode)
showFailureToast(com.mojang.authlib.services.FriendsService$ResultCode resultCode)
method_1_5963(com.mojang.authlib.services.FriendsService$ResultCode arg0)
reportError(com.mojang.authlib.services.FriendsService$ResultCode arg0)
public boolean
isFriendListEnabled()
isFriendListEnabled()
method_1_5941()
areFriendsEnabled()
public void
setFriendListEnabled(boolean friendListEnabled)
setFriendListEnabled(boolean friendListEnabled)
method_1_5962(boolean arg0)
setFriendsEnabled(boolean friendsEnabled)
public boolean
isAllowFriendRequests()
isAllowFriendRequests()
method_1_5939()
acceptsFriendInvites()
public void
setAllowFriendRequests(boolean allowFriendRequests)
setAllowFriendRequests(boolean allowFriendRequests)
method_1_5961(boolean arg0)
setAcceptsFriendInvites(boolean acceptsFriendInvites)
public InvitationManager
getPresenceHandler()
getPresenceHandler()
method_1_5937()
getInvitationManager()
public boolean
isFriend(UUID uuid)
isFriend(UUID uuid)
method_1_5940(UUID arg0)
hasFriend(UUID uuid)
private static List<SocialInteractionsManager$Player>
remap(List<com.mojang.authlib.services.response.FriendDto> friends)
remap(List<com.mojang.authlib.services.response.FriendDto> friends)
method_1_5955(List<com.mojang.authlib.services.response.FriendDto> arg0)
convertFriendDtos(List<com.mojang.authlib.services.response.FriendDto> player)