FriendApiClient

object FriendApiClient : ClientModInitializer

Client-side entry point for the Friend API mod.

Keeps track of the local friend list, persists it to disk, and wires up commands, keybinds, and Mojang API calls used to manage friends.

Functions

Link copied to clipboard

Checks whether the given friend entry is present in the friend list.

Checks whether a friend with the given UUID exists.

fun containsFriend(username: String): Boolean

Checks whether a friend with the given username exists.

Link copied to clipboard

Returns an immutable snapshot of the current friend list.

Link copied to clipboard
fun getFriend(nameAndUUID: NameAndUUID): NameAndUUID?

Looks up a friend by a full friend entry.

Looks up a friend by their UUID.

fun getFriend(username: String): NameAndUUID?

Looks up a friend by their Minecraft username.

Link copied to clipboard
open override fun onInitializeClient()

Called by Fabric when the client mod is initialized.