use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class SpeedUHCStats method getDeepStats.
@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = getPreview(player);
JsonHolder speedUhc = player.getStats(GameType.SPEED_UHC);
stats.add(new DisplayLine(""));
stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(speedUhc.optInt("kills"), speedUhc.optInt("deaths")))));
stats.add(new DisplayLine(bold("W/L: ", WebsiteUtils.buildRatio(speedUhc.optInt("wins"), speedUhc.optInt("losses")))));
stats.add(new DisplayLine(""));
stats.add(new DisplayLine(bold("Salt: ", speedUhc.optInt("salt"))));
final String[] SpeedUHC_modes = { "Solo Normal", "Solo Insane", "Team Normal", "Team Insane" };
stats.add(new DisplayLine(""));
List<String[]> lines = new ArrayList<>();
lines.add(new String[] { "Mode", "Kills", "Deaths", "Wins", "Losses", "K/D", "W/L" });
for (String name : SpeedUHC_modes) {
String api = name.toLowerCase().replace(" ", "_");
lines.add(new String[] { name, String.valueOf(speedUhc.optInt("kills_" + api)), String.valueOf(speedUhc.optInt("deaths_" + api)), String.valueOf(speedUhc.optInt("wins_" + api)), String.valueOf(speedUhc.optInt("losses_" + api)), WebsiteUtils.buildRatio(speedUhc.optInt("kills_" + api), speedUhc.optInt("deaths_" + api)), WebsiteUtils.buildRatio(speedUhc.optInt("wins_" + api), speedUhc.optInt("losses_" + api)) });
}
stats.add(new DisplayTable(lines));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class TNTGamesStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder tntGames = player.getStats(GameType.TNTGAMES);
stats.add(new DisplayLine(bold("Coins: ", tntGames.optInt("coins"))));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class BuildBattleStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder arcade = player.getStats(GameType.ARCADE);
stats.add(new DisplayLine(bold("Build Battle wins: ", arcade.optInt("wins_buildbattle"))));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class SmashHeroesStats method getDeepStats.
@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = getPreview(player);
JsonHolder smashHeroes = player.getStats(GameType.SUPER_SMASH);
stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(smashHeroes.optInt("kills"), smashHeroes.optInt("deaths")))));
stats.add(new DisplayLine(bold("W/L: ", WebsiteUtils.buildRatio(smashHeroes.optInt("wins"), smashHeroes.optInt("losses")))));
stats.add(new DisplayLine(""));
stats.add(new DisplayLine(bold("Smash Level: ", smashHeroes.optInt("smashLevel"))));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class SmashHeroesStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder smashHeroes = player.getStats(GameType.SUPER_SMASH);
stats.add(new DisplayLine(bold("Coins: ", smashHeroes.optInt("coins"))));
stats.add(new DisplayLine(bold("Kills: ", smashHeroes.optInt("kills"))));
stats.add(new DisplayLine(bold("Deaths: ", smashHeroes.optInt("deaths"))));
stats.add(new DisplayLine(bold("Wins: ", smashHeroes.optInt("wins"))));
stats.add(new DisplayLine(bold("Losses: ", smashHeroes.optInt("losses"))));
return stats;
}
Aggregations