use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class VampireZStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder vampireZ = player.getStats(GameType.VAMPIREZ);
stats.add(new DisplayLine(bold("Coins: ", vampireZ.optInt("coins"))));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class WarlordsStats method getDeepStats.
@Override
public List<StatsDisplayItem> getDeepStats(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = getPreview(player);
JsonHolder warlords = player.getStats(GameType.BATTLEGROUND);
stats.add(new DisplayLine(bold("Wins: ", warlords.optInt("wins"))));
stats.add(new DisplayLine(bold("K/D: ", WebsiteUtils.buildRatio(warlords.optInt("kills"), warlords.optInt("deaths")))));
stats.add(new DisplayLine(bold("W/L: ", WebsiteUtils.buildRatio(warlords.optInt("wins"), warlords.optInt("losses")))));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine in project Hyperium by HyperiumClient.
the class WarlordsStats method getPreview.
@Override
public List<StatsDisplayItem> getPreview(HypixelApiPlayer player) {
List<StatsDisplayItem> stats = new ArrayList<>();
JsonHolder warlords = player.getStats(GameType.BATTLEGROUND);
stats.add(new DisplayLine(bold("Coins: ", warlords.optInt("coins"))));
stats.add(new DisplayLine(bold("Kills: ", warlords.optInt("kills"))));
stats.add(new DisplayLine(bold("Assists: ", warlords.optInt("assists"))));
stats.add(new DisplayLine(bold("Deaths: ", warlords.optInt("deaths"))));
return stats;
}
use of cc.hyperium.handlers.handlers.stats.display.DisplayLine 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.handlers.handlers.stats.display.DisplayLine 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;
}
Aggregations