Package ovh.mythmc.social.api.presence
Interface OnlinePresence
- All Known Subinterfaces:
InGameSocialUser,SocialUser
- All Known Implementing Classes:
AbstractSocialUser,BukkitSocialUser,ConsoleSocialUser
public interface OnlinePresence
Represents the online presence state of an entity.
OnlinePresence defines whether an entity is currently online
and whether its cached presence information may be cleared.
-
Method Summary
-
Method Details
-
isOnline
boolean isOnline()Determines whether the entity is currently online.- Returns:
trueif the entity is online,falseotherwise
-
isExpired
boolean isExpired()Determines whether this entity should be removed from cache.- Returns:
trueif the entity can be cleared from cache,falseotherwise
-