OfflineFriend

Offline friends are friends who either aren't logged in, or cannot be seen as online due to preferences chosen.

Constructors

Link copied to clipboard
constructor(added: Boolean, name: String, previousName: String?, rank: Int, properties: Int, notes: String)

Properties

Link copied to clipboard
open override val added: Boolean

whether the friend was just added to the friend list, or if it's an initial load. For initial loads, the client skips existing friend checks.

Link copied to clipboard
open override val name: String

the display name of the friend

Link copied to clipboard
open override val notes: String

the notes on that friend. None of the clients use this value.

Link copied to clipboard
open override val previousName: String?

the previous display name of the friend, if they had one. If not, set it to null.

Link copied to clipboard
open override val properties: Int

a set of bitpacked properties; currently, the client only checks for two properties - PROPERTY_REFERRED and PROPERTY_REFERRER. These properties only affect the ordering of friends in the player's friend list.

Link copied to clipboard
open override val rank: Int

the friend's current rank, used to determine the chat icon

Link copied to clipboard
open override val worldId: Int

the world that the friend is logged into

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String