Java Hypixel API wrapper.
Replace VERSION
with the latest version above.
build.gradle
repositories {
jcenter()
}
dependencies {
implementation 'ru.mdashlw.hypixel:hypixel-api:VERSION'
}
build.gradle.kts
repositories {
jcenter()
}
dependencies {
implementation("ru.mdashlw.hypixel:hypixel-api:VERSION")
}
pom.xml
<depedencies>
<dependency>
<groupId>ru.mdashlw.hypixel</groupId>
<artifactId>hypixel-api</artifactId>
<version>VERSION</version>
</dependency>
</depedencies>
<repositories>
<repository>
<id>jcenter</id>
<name>JCenter</name>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>
To use Hypixel Public API you must provide an API key.
You can obtain a key by doing /api new
on the server.
HypixelAPI api = new HypixelAPI("API_KEY");
HypixelAPI api = new HypixelAPI("API_KEY", new OkHttpClient());
HypixelAPI api = new HypixelAPI("API_KEY", new OkHttpClient(), new ObjectMapper());
- All methods return CompletableFuture.
- All UUIDs can be both dashed and undashed.
Returns: HypixelPlayer (nullable).
HypixelAPI#retrievePlayerByUuid("uuid");
HypixelAPI#retrievePlayerByName("nickname");
Returns: Session (nullable).
HypixelAPI#retrieveSessionByUuid("uuid");
Returns: Guild (nullable).
HypixelAPI#retrieveGuildByName("guild_name");
HypixelAPI#retrieveGuildByPlayer("player_uuid");
Returns: Key (never-null).
HypixelAPI#retrieveKey();
Returns: List<Friendship> (never-null).
HypixelAPI#retrieveFriendsByUuid("uuid");
The project is licensed under the MIT license.