use of cc.hyperium.utils.JsonHolder in project Hyperium by HyperiumClient.
the class SkyClashStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder skyClash = player.getStats(GameType.SKYCLASH);
stats.add(new DisplayLine(bold("Coins: ", skyClash.optInt("coins"))));
stats.add(new DisplayLine(bold("Kills: ", skyClash.optInt("kills"))));
stats.add(new DisplayLine(bold("Wins: ", skyClash.optInt("wins"))));
stats.add(new DisplayLine(bold("Deaths: ", skyClash.optInt("deaths"))));
stats.add(new DisplayLine(bold("Losses: ", skyClash.optInt("losses"))));
return stats;
}
use of cc.hyperium.utils.JsonHolder in project Hyperium by HyperiumClient.
the class UHCStats method getDeepStats.
@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = getPreview(player);
JsonHolder UHC = player.getStats(GameType.UHC);
stats.add(new DisplayLine(""));
stats.add(new DisplayLine(bold("Teams", "")));
stats.add(new DisplayLine(bold("Kills: ", UHC.optInt("kills"))));
stats.add(new DisplayLine(bold("Deaths: ", UHC.optInt("deaths"))));
stats.add(new DisplayLine(bold("Wins: ", UHC.optInt("wins"))));
stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(UHC.optInt("kills"), UHC.optInt("deaths")))));
stats.add(new DisplayLine(""));
stats.add(new DisplayLine(bold("Solo", "")));
stats.add(new DisplayLine(bold("Kills: ", UHC.optInt("kills_solo"))));
stats.add(new DisplayLine(bold("Deaths: ", UHC.optInt("deaths_solo"))));
stats.add(new DisplayLine(bold("Wins: ", UHC.optInt("wins_solo"))));
stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(UHC.optInt("kills_solo"), UHC.optInt("deaths_solo")))));
return stats;
}
use of cc.hyperium.utils.JsonHolder in project Hyperium by HyperiumClient.
the class WallsStats method getDeepStats.
@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = getPreview(player);
JsonHolder walls = player.getStats(GameType.WALLS);
stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(walls.optInt("kills"), walls.optInt("deaths")))));
stats.add(new DisplayLine(bold("W/L: ", WebsiteUtils.buildRatio(walls.optInt("wins"), walls.optInt("losses")))));
return stats;
}
use of cc.hyperium.utils.JsonHolder in project Hyperium by HyperiumClient.
the class WallsStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder walls = player.getStats(GameType.WALLS);
stats.add(new DisplayLine(bold("Coins: ", walls.optInt("coins"))));
stats.add(new DisplayLine(bold("Kills: ", walls.optInt("kills"))));
stats.add(new DisplayLine(bold("Deaths: ", walls.optInt("deaths"))));
stats.add(new DisplayLine(bold("Wins: ", walls.optInt("wins"))));
stats.add(new DisplayLine(bold("Losses: ", walls.optInt("losses"))));
return stats;
}
use of cc.hyperium.utils.JsonHolder in project Hyperium by HyperiumClient.
the class CVCStats method getDeepStats.
@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
List<StatsDisplayItem> preview = getPreview(player);
JsonHolder stats = player.getStats(GameType.MCGO);
preview.add(new DisplayLine(""));
preview.add(new DisplayLine(bold("Bombs Planted: ", stats.optInt("bombs_planted")), Color.WHITE.getRGB()));
preview.add(new DisplayLine(bold("Bombs Defused: ", stats.optInt("bombs_defused")), Color.WHITE.getRGB()));
preview.add(new DisplayLine(bold("Round Wins: ", stats.optInt("round_wins")), Color.WHITE.getRGB()));
preview.add(new DisplayLine(bold("Shots Fired: ", stats.optInt("shots_fired")), Color.WHITE.getRGB()));
return preview;
}
Aggregations