Interface LeaderboardService
public interface LeaderboardService
Queries top players across balance, rebirth, prestige, and credits leaderboards.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoid@NotNull List<LeaderboardService.LeaderboardEntry> getTop(@NotNull LeaderboardService.LeaderboardType type, int limit) Synchronous leaderboard query.default @NotNull CompletableFuture<List<LeaderboardService.LeaderboardEntry>> getTopAsync(@NotNull LeaderboardService.LeaderboardType type, int limit) Runs the database query off the primary thread.
-
Method Details
-
getTop
@MainThread @NotNull @NotNull List<LeaderboardService.LeaderboardEntry> getTop(@NotNull @NotNull LeaderboardService.LeaderboardType type, int limit) Synchronous leaderboard query. Safe to call from the main thread; for scoreboard/tab loops prefergetTopAsync(LeaderboardType, int). -
getTopAsync
@NotNull default @NotNull CompletableFuture<List<LeaderboardService.LeaderboardEntry>> getTopAsync(@NotNull @NotNull LeaderboardService.LeaderboardType type, int limit) Runs the database query off the primary thread. Player names may be resolved from the server user cache. -
forceRefreshHolograms
-