Class PresenceHandler
java.lang.Object
net.minecraft.client.gui.screens.social.PresenceHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.services.FriendsServiceprivate Instantprivate com.mojang.authlib.services.response.PresenceResponseprivate static final org.slf4j.Loggerprivate static final longprivate final Minecraftprivate static final Durationprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionPresenceHandler(Minecraft minecraft, com.mojang.authlib.services.FriendsService friendsService) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.authlib.services.response.PresenceResponseprivate com.mojang.authlib.services.response.PresenceStatusprivate com.mojang.authlib.services.response.PresenceStatusprivate booleanprivate @Nullable com.mojang.authlib.services.response.PresenceResponsepostPresence(com.mojang.authlib.services.response.PresenceStatus status) voidprivate booleanvoidtick()voidprivate void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PRESENCE_UPDATE_INTERVAL
-
MAX_PRESENCE_INTERVAL_MULTIPLIER
private static final long MAX_PRESENCE_INTERVAL_MULTIPLIER- See Also:
-
minecraft
-
friendsService
private final com.mojang.authlib.services.FriendsService friendsService -
latestPresence
private com.mojang.authlib.services.response.PresenceResponse latestPresence -
lastPresencePost
-
updatePresence
private boolean updatePresence
-
-
Constructor Details
-
PresenceHandler
public PresenceHandler(Minecraft minecraft, com.mojang.authlib.services.FriendsService friendsService)
-
-
Method Details
-
updatePresence
private void updatePresence() -
postPresence
private @Nullable com.mojang.authlib.services.response.PresenceResponse postPresence(com.mojang.authlib.services.response.PresenceStatus status) -
isPresenceSharingDisabled
private boolean isPresenceSharingDisabled() -
shouldRefreshPresence
private boolean shouldRefreshPresence() -
tick
public void tick() -
tryUpdatePresence
public void tryUpdatePresence() -
sendOfflinePresence
public void sendOfflinePresence() -
getLatestPresence
public com.mojang.authlib.services.response.PresenceResponse getLatestPresence() -
getPublicPresenceStatus
private com.mojang.authlib.services.response.PresenceStatus getPublicPresenceStatus() -
getPresenceStatus
private com.mojang.authlib.services.response.PresenceStatus getPresenceStatus()
-