Search in sources :

Example 16 with DisplayLine

use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.

the class SkyWarsStats method getPreview.

@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = new ArrayList<>();
    JsonHolder skyWars = player.getStats(GameType.SKYWARS);
    stats.add(new DisplayLine(bold("Coins: ", skyWars.optInt("coins"))));
    stats.add(new DisplayLine(bold("Kills: ", skyWars.optInt("kills"))));
    stats.add(new DisplayLine(bold("Assists: ", skyWars.optInt("assists"))));
    stats.add(new DisplayLine(bold("Deaths: ", skyWars.optInt("deaths"))));
    stats.add(new DisplayLine(bold("Wins: ", skyWars.optInt("wins"))));
    stats.add(new DisplayLine(bold("Losses: ", skyWars.optInt("losses"))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem) ArrayList(java.util.ArrayList)

Example 17 with DisplayLine

use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.

the class SpeedUHCStats method getPreview.

@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = new ArrayList<>();
    JsonHolder speedUhc = player.getStats(GameType.SPEED_UHC);
    stats.add(new DisplayLine(bold("Coins: ", speedUhc.optInt("coins"))));
    stats.add(new DisplayLine(bold("Kills: ", speedUhc.optInt("kills"))));
    stats.add(new DisplayLine(bold("Deaths: ", speedUhc.optInt("deaths"))));
    stats.add(new DisplayLine(bold("Wins: ", speedUhc.optInt("wins"))));
    stats.add(new DisplayLine(bold("Losses: ", speedUhc.optInt("losses"))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem) ArrayList(java.util.ArrayList)

Example 18 with DisplayLine

use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.

the class TNTGamesStats method getDeepStats.

@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
    List<StatsDisplayItem> stats = getPreview(player);
    JsonHolder tntGames = player.getStats(GameType.TNTGAMES);
    stats.add(new DisplayLine(bold("TNT Run Wins: ", tntGames.optInt("wins_tntrun"))));
    stats.add(new DisplayLine(bold("TNT Tag Wins: ", tntGames.optInt("wins_tnttag"))));
    stats.add(new DisplayLine(bold("PVP Run Wins: ", tntGames.optInt("wins_pvprun"))));
    stats.add(new DisplayLine(bold("Bowspleef Wins: ", tntGames.optInt("wins_bowspleef"))));
    stats.add(new DisplayLine(bold("Bowspleef W/L: ", WebsiteUtils.buildRatio(tntGames.optInt("wins_bowspleef"), tntGames.optInt("deaths_bowspleef")))));
    stats.add(new DisplayLine(bold("TNT Wizards Kills: ", tntGames.optInt("kills_capture"))));
    stats.add(new DisplayLine(bold("TNT Wizards Wins: ", tntGames.optInt("wins_capture"))));
    stats.add(new DisplayLine(bold("TNt Wizards K/D: ", WebsiteUtils.buildRatio(tntGames.optInt("kills_capsafture"), tntGames.optInt("deaths_capture")))));
    return stats;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem)

Example 19 with DisplayLine

use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.

the class ArcadeStats method getPreview.

@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
    ArrayList<StatsDisplayItem> items = new ArrayList<>();
    items.add(new DisplayLine(bold("Coins: ", player.getStats(GameType.ARCADE).optInt("coins"))));
    return items;
}
Also used : DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem) ArrayList(java.util.ArrayList)

Example 20 with DisplayLine

use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.

the class ArcadeStats method getDeepStats.

@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
    List<StatsDisplayItem> items = getPreview(player);
    JsonHolder arcade = player.getStats(GameType.ARCADE);
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Galaxy Wars", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Kills: ", arcade.optInt("sw_kills"))));
    items.add(new DisplayLine(bold("Shots Fired: ", arcade.optInt("sw_shots_fired"))));
    items.add(new DisplayLine(bold("Rebel Kills: ", arcade.optInt("sw_rebel_kills"))));
    items.add(new DisplayLine(bold("Deaths: ", arcade.optInt("sw_deaths"))));
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Farm Hunt", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Poop collected: ", arcade.optInt("poop_collected"))));
    items.add(new DisplayLine(bold("Farm Hunt Wins: ", arcade.optInt("wins_farm_hunt"))));
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Bounty Hunters", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Wins: ", arcade.optInt("wins_oneinthequiver"))));
    items.add(new DisplayLine(bold("Deaths: ", arcade.optInt("deaths_oneinthequiver"))));
    items.add(new DisplayLine(bold("Bounty Kills: ", arcade.optInt("bounty_kills_oneinthequiver"))));
    items.add(new DisplayLine(bold("Kills: ", arcade.optInt("kills_oneinthequiver"))));
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Blocking Dead", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Kills: ", arcade.optInt("kills_dayone"))));
    items.add(new DisplayLine(bold("Headshots: ", arcade.optInt("headshots_dayone"))));
    items.add(new DisplayLine(bold("Wins: ", arcade.optInt("wins_dayone"))));
    items.add(new DisplayLine(bold("Melee Weapon: ", arcade.optString("melee_weapon").toLowerCase().replace("_", " "))));
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Football", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Wins: ", arcade.optInt("wins_soccer"))));
    items.add(new DisplayLine(bold("Goals: ", arcade.optInt("goals_soccer"))));
    items.add(new DisplayLine(bold("Power Kicks: ", arcade.optInt("powerkicks_soccer"))));
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Mini Walls", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Arrows hit: ", arcade.optInt("arrows_hit_mini_walls"))));
    items.add(new DisplayLine(bold("Kills: ", arcade.optInt("kills_mini_walls"))));
    items.add(new DisplayLine(bold("Final Kills: ", arcade.optInt("final_kills_mini_walls"))));
    items.add(new DisplayLine(bold("Wins: ", arcade.optInt("wins_mini_walls"))));
    items.add(new DisplayLine(bold("Deaths: ", arcade.optInt("deaths_mini_walls"))));
    items.add(new DisplayLine(bold("Wither Damage: ", arcade.optInt("wither_damage_mini_walls"))));
    items.add(new DisplayLine(bold("Wither Kills: ", arcade.optInt("wither_kills_mini_walls"))));
    items.add(new DisplayLine(""));
    items.add(new DisplayLine("Other Games", Color.WHITE.getRGB(), 2));
    items.add(new DisplayLine(bold("Hole in the Wall Record : ", arcade.optInt("hitw_record_q"))));
    items.add(new DisplayLine(bold("Total Hole in the Walls Rounds: ", arcade.optInt("rounds_hole_in_the_wall"))));
    items.add(new DisplayLine(bold("Hypixel Says Rounds: ", arcade.optInt("rounds_simon_says"))));
    items.add(new DisplayLine(bold("Hypixel Says Wins: ", arcade.optInt("wins_simon_says"))));
    items.add(new DisplayLine(bold("Kills throwout: ", arcade.optInt("kills_throw_out"))));
    items.add(new DisplayLine(bold("Death throwout: ", arcade.optInt("deaths_throw_out"))));
    items.add(new DisplayLine(bold("Kills dragon wars: ", arcade.optInt("kills_dragonwars2"))));
    items.add(new DisplayLine(bold("Wins dragon wars: ", arcade.optInt("wins_dragonwars2"))));
    items.add(new DisplayLine(bold("Build Battle wins: ", arcade.optInt("wins_buildbattle"))));
    items.add(new DisplayLine(bold("Max Creeper Attack Wave: ", arcade.optInt("max_wave"))));
    items.add(new DisplayLine(bold("Party Games 1 wins: ", arcade.optInt("wins_party"))));
    items.add(new DisplayLine(bold("Party Games 2 wins: ", arcade.optInt("wins_party_2"))));
    items.add(new DisplayLine(bold("Party Games 3 wins: ", arcade.optInt("wins_party_3"))));
    return items;
}
Also used : JsonHolder(cc.hyperium.utils.JsonHolder) DisplayLine(cc.hyperium.handlers.handlers.stats.display.DisplayLine) StatsDisplayItem(cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem)

Aggregations

DisplayLine (cc.hyperium.handlers.handlers.stats.display.DisplayLine)44 StatsDisplayItem (cc.hyperium.handlers.handlers.stats.display.StatsDisplayItem)43 JsonHolder (cc.hyperium.utils.JsonHolder)42 ArrayList (java.util.ArrayList)32 DisplayTable (cc.hyperium.handlers.handlers.stats.display.DisplayTable)10 SimpleDateFormat (java.text.SimpleDateFormat)2 Date (java.util.Date)2 Pet (club.sk1er.website.Pet)1 JsonArray (com.google.gson.JsonArray)1 JsonElement (com.google.gson.JsonElement)1 GameType (net.hypixel.api.GameType)1