HypixelClient

constructor(apiKey: String, httpClient: OkHttpClient = OkHttpClient(), baseUrl: String = "https://api.hypixel.net/v2", defaultCacheDurationMinutes: Int = 1, autoRetry: Boolean = false, maxRetries: Int = 3)

Parameters

apiKey

The Hypixel API key.

httpClient

The OkHttpClient instance to use for requests.

baseUrl

The base URL for the Hypixel API.

defaultCacheDurationMinutes

The duration for which successful responses should be cached.

autoRetry

Whether to automatically retry requests that fail due to rate limiting.

maxRetries

The maximum number of retries for rate-limited requests.