Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 3.64 KB

File metadata and controls

35 lines (24 loc) · 3.64 KB

HypixelAPI Java Examples

This codebase serves as an example of how to integrate the HypixelAPI into your project.

A small overview of where to find things

  • The main/shared API initalization and global constant defention are in ExampleUtil

    ExampleUtil also defines the getTestConsumer an often seen error handler, that prints out the response if sucess, and throws if failure. Note: A stringified version of the response object will be printed on sucess

  • An example of getting the list of active and qued boosters is in GetBoostersExamplet

    Stringfied response can be found here

  • An example of getting the current player count is in GetCountsExample

  • An example of getting information about a guild is in GetGuildExample

    Response data includes the guild's name,tag, gexp breakdown, level and more!

  • An example of getting the current leaderboards is in GetLeaderboardsExample

    A stringfied response can be found here

  • An example of getting pet information can be found here, in GetPetsExample

    Response data includes pet rarity, rarity colors, whether a player posses that pet, and more!

  • An example of getting player information can be found in GetPlayerExample

    Response data includes the players: UUID, network level(exact), rank, mc version, and more!

  • An example of getting the current punishment stats can be found in GetPunishmentStatsExample

  • An example of getting recent games of a UUID(using hypixel's as an example) can be found in GetRecentGamesExample

  • An example of getting a games challenges can be found in GetResourceExample

  • An example of getting a player's status can be found in GetStatusExample

    Note: this is not a perfectc indicator of online status, as in game a player can run /status offline to set their status to offline