Skip to content

API Usage

Max edited this page Aug 25, 2023 · 3 revisions

Current API functions are as followed:

fun supplyColoredNames() : CompletableFuture<String>

supplyColoredNames is a function used to fetch every colored name efficiently and easily. Since it is in a completable future form use supplyColoredNames().get() to get the value

fun quickFindProfile(uuid: UUID) : CompletableFuture<GameProfile?>

This function finds the profile super easily without having to filter through the actual profile service. This uses the quickFind function which uses redis and mongo to it's advantage to deliver short fetching times. This call is wrapped in a CompletableFuture.

fun syncFindProfile(uuid: UUID) : GameProfile?

This is the same function as quickFindProfile(uuid: UUID) except it returns GameProfile? without the CompletableFuture wrap.

Clone this wiki locally