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

    Modifier and Type
    Method
    Description
    boolean
    Determines whether this entity should be removed from cache.
    boolean
    Determines whether the entity is currently online.
  • Method Details

    • isOnline

      boolean isOnline()
      Determines whether the entity is currently online.
      Returns:
      true if the entity is online, false otherwise
    • isExpired

      boolean isExpired()
      Determines whether this entity should be removed from cache.
      Returns:
      true if the entity can be cleared from cache, false otherwise